CN106021339A - A semantic query method and system for a resource tree - Google Patents

A semantic query method and system for a resource tree Download PDF

Info

Publication number
CN106021339A
CN106021339A CN201610301170.2A CN201610301170A CN106021339A CN 106021339 A CN106021339 A CN 106021339A CN 201610301170 A CN201610301170 A CN 201610301170A CN 106021339 A CN106021339 A CN 106021339A
Authority
CN
China
Prior art keywords
semantic
resource
information
description
semantic description
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610301170.2A
Other languages
Chinese (zh)
Other versions
CN106021339B (en
Inventor
毛峻岭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201610301170.2A priority Critical patent/CN106021339B/en
Publication of CN106021339A publication Critical patent/CN106021339A/en
Application granted granted Critical
Publication of CN106021339B publication Critical patent/CN106021339B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9027Trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a semantic query method and system for a resource tree. The semantic query method for a resource tree comprises the steps of S1, receiving a semantic query request which includes target resource information; S2, determining access-allowed semantic description resources under the target resource information; S3, performing semantic query according to the semantic query request in the semantic description resources determined in the step S2. The semantic query method and system for a resource tree can increase semantic query speed.

Description

The semantic query method and system of resourceoriented tree
Technical field
The invention belongs to technology of Internet of things field, the semanteme being specifically related to a kind of resourceoriented tree is looked into Ask method and system.
Background technology
At present, most platform of internet of things system all uses and meets REST (Representational State Transfer, is called for short REST, and the Chinese meaning is presentation layer state Conversion) the software architecture style (that is, RESTful style) of principle is designed, in this system Internet of Things resource can expose with the form of tree, each resource is as on this resource tree One node, can be identified by a URL address.Further, along with the development of Internet of Things, language Justice technology is gradually introduced in Internet of things system and meets Internet of Things interoperability and intelligence inquiry etc. Demand, the thing set in Internet of Things field International Organization for Standardization (oneM2M) such as at present In networked system, in order to use semantic technology, need to be labeled in semantic information respectively money In the tree of source in the semantic description resource under respective resources. Traditional semantic query method, its query request object is semantic database rather than resource tree. This each node disperseing semantic information to be stored on resource tree occurred in Internet of Things Phenomenon, traditional semantic query method cannot directly act on and inquiring about.Additionally looking into Access control aspect during inquiry, traditional semantic query method also cannot be tackled this due to semanteme The diversified access control problem that information dispersion is brought in resource tree.
Therefore, a kind of semantic query method in the face of resource tree is needed at present badly.
Summary of the invention
It is contemplated that at least solve one of technical problem present in prior art, it is proposed that one The semantic query method and system of resource tree faced by kind, can not only carry out semanteme in the face of resource tree Inquiry, and semantic query speed is high;And can effectively process access control problem.
For solving one of the problems referred to above, the invention provides the semantic query of a kind of resourceoriented tree Method, including: S1, receive semantic query request, the request of described semantic query includes target Resource information;S2, determines the semantic description resource allowing to access under this target resource information;S3, In the described semantic description resource that step S2 determines, carry out language according to the request of described semantic query Justice inquiry.
Preferably, described step S2, determine and allow under this target resource information respective path to access All of semantic description resource.
Preferably, also including: pre-set incidence relation table, described incidence relation table is used for remembering Record the corresponding pass of the object class belonging to description object and the information relevant with described semantic description resource System;Described step S2 includes: S21, determines that involved description is right according to the request of described semantic query As affiliated object class, and search in described incidence relation table according to the described object class determined The corresponding information relevant with described semantic description resource;S22, basis under target resource information The information that the described and described semantic description resource that finds is relevant, determines both at this target resource Meet again the described semanteme allowing to access for information about found under the path that information is corresponding to retouch State resource.
Preferably, the corresponding relation in described incidence relation table is: described object class and this object The path format one_to_one corresponding of class place semantic description resource;Described step S21, according to institute's predicate Justice inquiry request determines the object class belonging to involved description object, and exists according to the object class determined Described incidence relation table is searched the path format of corresponding described semantic description resource;Described step Rapid S22, according to the described path format found under target resource information, determines both at this mesh The described semanteme allowing to access meeting again this path format under the path that mark resource information is corresponding is retouched State resource.
Preferably, the corresponding relation in described incidence relation table is: corresponding one of each object class Semantic description resource class, a semantic description resource can include multiple semantic description resource class; Described step S21, determines the object belonging to involved description object according to the request of described semantic query Class, and search in described incidence relation table and this object class pair according to the described object class determined The semantic description resource class answered;Described step S22, according to finding under target resource information Described semantic description resource class, determine not only under the path that this target resource information is corresponding but also Meet the described semantic description resource allowing to access of this semantic description resource class.
The present invention also provides for the semantic query system's of a kind of resourceoriented tree, including: receiver module, For receiving semantic query request, the request of described semantic query includes target resource information;Really Cover half block, for determining the semantic description resource allowing to access under this target resource information;Inquiry Module, for determining in the described semantic description resource that module determines, according to institute's predicate described Justice inquiry request carries out semantic query.
Preferably, described determine module, be used for determining under this target resource information respective path and permitting Permitted all semantic description resources accessed.
Preferably, also include: presetting module, be used for pre-setting incidence relation table, described pass Connection relation table is for object class belonging to record description object and relevant with described semantic description resource The corresponding relation of information;Described determine module, for determining according to the request of described semantic query Involved object class belonging to description object, and close in described association according to the described object class determined It is the information the most relevant with described semantic description resource of searching in table, in target resource information The information that described and described semantic description resource that lower basis finds is relevant, determines both at this mesh Meet again under path corresponding to mark resource information found for information about allow to access described Semantic description resource.
Preferably, the corresponding relation in described incidence relation table is: described object class and this object The path format one_to_one corresponding of class place semantic description resource;Described determine module, for basis The request of described semantic query determines the object class belonging to involved description object, and right according to determine As class searches the path format of corresponding described semantic description resource in described incidence relation table, According to the described path format found under target resource information, determine both at this target resource The described semantic description money allowing to access of this path format is met again under the path that information is corresponding Source.
Preferably, the corresponding relation in described incidence relation table is: corresponding one of each object class Semantic description resource class, a semantic description resource can include multiple semantic description resource class; Described determine module, for determining belonging to involved description object according to the request of described semantic query Object class, and search in described incidence relation table and this object according to the described object class determined The semantic description resource class that class is corresponding, according to the institute's predicate found under target resource information Justice describes resource class, determines not only under the path that this target resource information is corresponding but also meet this language Justice describes the described semantic description resource allowing to access of resource class.
The method have the advantages that
The semantic query method and system of resource tree faced by present invention offer, specifically, due to The corresponding semantic description resource of each resource node of resource tree, multiple semantic description resources are pressed Carry out fractional distribution according to tree, therefore, access according to the permission that target resource information determines Semantic description resource be more relevant to the description object of required inquiry, remove/sieve remove with Description object incoherent semantic description resource, that is, the scope of semantic query is decreased to The semantic description resource that description object is relatively correlated with, therefore semantic query speed is high;It addition, entering Row inquiry time access control aspect, the semantic query method of existing Semantic-Oriented data base without Method reply is this to be controlled owing to semantic information is dispersed in the diversified access brought in resource tree Problem, and the present invention can extract corresponding semantic letter according to access control right from resource tree Breath, therefore, it can effectively process the problem accessing control.
Accompanying drawing explanation
The flow process of the semantic query method of the resourceoriented tree that Fig. 1 provides for the embodiment of the present invention 1 Figure;
Step in the semantic query method of the resourceoriented tree that Fig. 2 provides for the embodiment of the present invention 2 A kind of flow chart of rapid S2;
Step in the semantic query method of the resourceoriented tree that Fig. 3 provides for the embodiment of the present invention 3 The another kind of flow chart of rapid S2;
The principle of the semantic query system's of the resourceoriented tree that Fig. 4 provides for the embodiment of the present invention 1 Block diagram;
The principle of the semantic query system's in the face of resource tree that Fig. 5 provides for the embodiment of the present invention 2 Block diagram.
Detailed description of the invention
For making those skilled in the art be more fully understood that technical scheme, below in conjunction with The semantic query method and system in the face of resource tree that the present invention is provided by accompanying drawing are retouched in detail State.
Embodiment 1
The flow process of the semantic query method of the resourceoriented tree that Fig. 1 provides for the embodiment of the present invention 1 Figure;Referring to Fig. 1, the semantic query method of the resourceoriented tree that the present embodiment provides includes:
S1, receives semantic query request, and the request of described semantic query includes target resource information. Specifically, target resource information includes target resource address, more specifically, target resource address For can point at the URL address of a certain resource node in resource tree.
S2, determines the semantic description resource allowing to access under this target resource information.Be specially but It is not limited to, determines and under the path (i.e. address) that target resource information is corresponding, allow access to own Semantic description resource.
S3, in the described semantic description resource that step S2 determines, please according to described semantic query Ask and carry out semantic query.
It is appreciated that the semantic query method of the resourceoriented tree that the present embodiment provides, due to money The corresponding semantic description resource of each resource node of source tree, multiple semantic description resources according to Tree carries out fractional distribution, and therefore, the permission determined according to target resource information accesses Semantic description resource is more relevant to the description object of required inquiry, and removal/sieve removes and retouches State object incoherent semantic description resource, that is, the scope of semantic query be decreased to and retouch Stating the semantic description resource that object is relatively correlated with, therefore semantic query speed is high;It addition, carry out Access control aspect during inquiry, the semantic query method of existing Semantic-Oriented data base cannot Tackle and this ask owing to semantic information is dispersed in the diversified access control brought in resource tree Topic, and the present invention can extract corresponding semantic information according to access control right from resource tree, Therefore, it can effectively process and access the problem controlled.
Semantic query method that the present embodiment provide is exemplified below.Resource tree includes resource WashMachine_A and resource WashMachine_B, respectively as the node in resource tree, Each indicated by a URL address, and each there is a semantic description resource.
For resource WashMachine_A, URL address is http://www.M2MPlatform.com/devices/WashMachine_A;Semantic description resource For SemanticDescriptor_A, the semantic information in this semantic description resource includes: manufacturer, For Haier;Device numbering, is 1064612345789;Switch_A operates;Address is http://www.M2MPlatform.com/devices/WashMachine_A/SemanticDescrip tor_A.There is under resource WashMachine_A resource Switch_A, also serve as resource Node in tree, is indicated by a URL address, and has a semantic description resource, wherein, The URL address of resource Switch_A is http://www.M2MPlatform.com/devices/WashMachine_A/Switch_A;Resource The semantic description resource of Switch_A is SemanticDescriptor_1, in this semantic description resource Semantic information include: mode of operation, for true;Address is: http://www.M2MPlatform.com/devices/WashMachine_A/Switch_A/Sema nticDescriptor_1。
For resource WashMachine_B, URL address is http://www.M2MPlatform.com/devices/WashMachine_B;Semantic description resource SemanticDescriptor_B, the semantic information in this semantic description resource includes: manufacturer, for Sumsung;Device numbering, is 1077212345678;Switch_B operates, and address is http://www.M2MPlatform.com/devices/WashMachine_B/SemanticDescrip tor_B.There is under resource WashMachine_B resource Switch_B, also serve as resource tree In node, indicated by a URL address, and there is a semantic description resource, wherein, The URL path of resource Switch_B is: Http:// www.M2MPlatform.com/devices/WashMachine_B/Switch_B, resource The semantic description resource of resource Switch_B is SemanticDescriptor_2, and this semantic description provides Semantic information in source includes: mode of operation, for false;Address is: http://www.M2MPlatform.com/devices/WashMachine_A/Switch_A/Sema nticDescriptor_2。
S10, application A are to initiating semantic query request, it is therefore an objective to search WashMachine_A Manufacturer's information, this semantic query request include target resource information, particularly as follows: target money Source address, for http://www.M2Mplatform.com/devices/WashMachine_A.
S11, receives the semantic query request that application A sends.
S12, according to above-mentioned target resource address, determines that the application under this target resource address allows The all semantic description resources accessed, specifically, including: SemanticDescriptor_A and SemanticDescriptor_1。
Two semantemes of SemanticDescriptor_A and SemanticDescriptor_1 are retouched by S13 The semantic information stated in resource merges.
S14, carries out semantic query in semantic description resource after merging.
S15, returns to Query Result apply A.Such as: Device (equipment): http://www.M2MPlatform.com/devices/WashMachine_A;Vendor (manufacturer): ‘Haier’。
It should be noted that in the present embodiment, determine that at least two semanteme is retouched in step S2 When stating resource, also include between step S2 and step S3: the semantic description money that will determine The step that source merges, step S3 is then to carry out semanteme in the semantic description resource after this merging to look into Ask.Certainly, the invention is not limited in this, it is also possible to need not the step merged, directly exist At least two semantic description resource carries out semantic query.
Embodiment 2
Step in the semantic query method of the resourceoriented tree that Fig. 2 provides for the embodiment of the present invention 2 A kind of flow chart of rapid S2, refers to Fig. 2, and the semantic query method that the present embodiment provides is with upper The semantic query method stating embodiment 1 offer is similar, includes step S 1~S3 equally, due to step Rapid S1~S3 there has been in embodiment 1 and describe in detail, does not repeats them here.
The difference of the application and above-described embodiment 1 is the most only described.Specifically, refer to Fig. 2, Pre-set incidence relation table, incidence relation table for belonging to record description object object class and The corresponding relation of the information relevant with semantic description resource.
Described step S2 includes:
S21, determines the object class belonging to involved description object according to the request of described semantic query, and Search in described incidence relation table according to the described object class determined and retouch with described semanteme accordingly State the information that resource is relevant.
S22, has with described semantic description resource under target resource information according to finding The information closed, determines not only under the path that this target resource information is corresponding but also meet having of being found The described semantic description resource allowing to access of pass information.
Specifically, in the present embodiment, the corresponding relation in described incidence relation table is: described Object class and the path format one_to_one corresponding of this object class place semantic description resource.
In the case, described step S21, according to described semantic query request determine involved by retouch State the object class belonging to object, and search in described incidence relation table according to the object class determined The path format of corresponding described semantic description resource.
Described step S22, according to the described path found under target resource information, determines Not only under the path that this target resource information is corresponding but also meet the institute allowing to access of this path format State semantic description resource.
Citing below describes the semantic query method of the resourceoriented tree that the present embodiment 2 provides in detail. This example is same resource tree with the resource tree of institute's illustrated example in above-described embodiment 1, at this not Repeat again.On this basis, this semantic query method comprises the following steps:
Pre-set incidence relation table, specifically, when semantic information creates, record semantic information In object class and the corresponding relation of semantic description resource path, and set up following incidence relation table:
Object class The path format of semantic description resource
m2m:WashMachine http://www.M2Mplatform.com/devices/*/
m2m:Operation http://www.M2Mplatform.com/devices/*/*/
In actual applications, this incidence relation table is retouched also dependent on semanteme in the resource tree specified The hierarchical relationship stating resource dynamically generates, as system regulation must be to device resource entity A Under/device path, the description to this resource entity A must be on the road of this device resource entity Under footpath, i.e./device/*/, the operating resource entity of this device resource entity must be at this device Under the path of resource entity, the semantic description of this operating resource entity then must be provided in this operation Under the path of source entity, i.e./device/*/*/.
S20, application A send semantic query request in order to search resource WashMachine_A and the manufacturer's information of resource WashMachine_B, this semantic query is asked In target resource address be http://www.M2Mplatform.com/devices/.
S21, receives semantic query request, and according to the description object in semantic query request and basis Body determines that involved object class is WashMachine, and according to the object class determined WashMachine searches corresponding semantic description resource in the incidence relation table pre-set Path format be http://www.M2Mplatform.com/devices/*/.
In actual applications, if object class can be described in multiple semantic description resources, then Employing tlv triple makes a distinction, and in tlv triple, first yuan is referred to as object, and second yuan is restriction relation, Ternary is constraint;Above-mentioned so-called object class is first yuan of affiliated classification in tlv triple.
S22, the semantic description resource under target resource address includes SemanticDescriptor_A, SemanticDescriptor_B, SemanticDescriptor_1 and SemanticDescriptor_2, according to semantic description resource path lattice in these four semantic descriptions Formula http://www.M2Mplatform.com/devices/*/determine both in this target resource information pair The semantic description resource allowing to access meeting again this path format under the path answered is SemanticDescriptor_A and SemanticDescriptor_B.
S23, merge semantic description resource SemanticDescriptor_A and SemanticDescriptor_B。
S24, carries out semantic query in semantic description resource after merging.
S25, returns to Query Result apply A.Specifically, following Query Result is returned:
Device (equipment) Vendor (manufacturer)
WashMachine_A Haier
WashMachine_B Sumsung
From the foregoing, it will be observed that use the semantic query method that the present embodiment provides, it can be seen that although language Justice describes resource SemanticDescriptor_1 and SemanticDescriptor_2 at target resource Under the path of address, but, not quilt under incidence relation form based on hiding link In the range of being incorporated into the semantic information of semantic query, therefore, this relative embodiment 1 merges institute For having the semantic description resource of permission, the speed of semantic query can be improved further.
Embodiment 3
Step in the semantic query method of the resourceoriented tree that Fig. 3 provides for the embodiment of the present invention 3 The another kind of flow chart of rapid S2, refers to Fig. 3, the semantic query method that the present embodiment provides with The semantic query method that above-described embodiment 2 provides is similar, and the identical point of the two is the most superfluous at this State.
The difference of the application and above-described embodiment 2 is the most only described.Specifically, refer to Fig. 3,
Corresponding relation in described incidence relation table is: the corresponding semantic description of each object class Resource class, a semantic description resource can include multiple semantic description resource class.
Described step S21, determines belonging to involved description object according to the request of described semantic query Object class, and search in described incidence relation table and this object according to the described object class determined The semantic description resource class that class is corresponding.
Described step S22, according to the described semantic description money found under target resource information Source category, determines not only under the path that this target resource information is corresponding but also meet this semantic description money The described semantic description resource allowing to access of source category.
Citing below describes the semantic query method of the resourceoriented tree that the present embodiment 3 provides in detail. This example is same resource tree with the resource tree of institute's illustrated example in above-described embodiment 1, at this not Repeat again.On this basis, this semantic query method comprises the following steps:
Pre-build above-mentioned incidence relation table, in the present embodiment, at the semanteme of establishing resource tree During information, set up the first subrelation table, for recording object class and semantic description resource class Corresponding relation, also sets up the second subrelation table, be used for recording semantic description resource and path thereof and The corresponding relation of semantic description resource class.Owing in m2m body, the basic class of top layer has M2m:Device class and m2m:Operation class, m2m:WashMachine class belongs to Device Class.
First subrelation table is as follows:
Object class Semantic resources classification
m2m:WashMachine Type_Device
m2m:Operation Type_Operation
Second subrelation table is as follows:
S30, application A send semantic query request, it is therefore an objective to search WashMachine_A's Manufacturer's information, the target resource address that the request of this semantic query includes is: http://www.M2Mplatform.com/devices/WashMachine_A。
S31, receives semantic query request, and according to the target resource ground in the request of this semantic query Location determines the semantic description resource allowing to access under target resource address path.It is specially semanteme Resource SemanticDescriptor_A and SemanticDescriptor_1 are described.
S32, analyzes semantic inquiry request, and determines involved by query object according to m2m body Object class be m2m:WashMachine;According to this object class m2m:WashMachine and Above-mentioned incidence relation table determines that the semantic resources classification of correspondence is Type_Device.
S33, determines according to above-mentioned incidence relation table in the semantic description resource that step S31 determines There is the semantic description resource of semantic description resource class Type_Device, finally determine both at this The semantic description money of this semantic description resource class is met again under the path that target resource information is corresponding Source is SemanticDescriptor_A.
S34, carries out language in semantic description resource SemanticDescriptor_A finally determined Justice inquiry.
S35, is back to Query Result apply A.Query Result particularly as follows:
Device (equipment) Vendor (manufacturer)
WashMachine_A Haier
From the foregoing, it will be observed that the semantic query method that the present embodiment provides, it can be seen that although SemanticDescriptor_A and SemanticDescriptor_1 is in inquiry target resource address Path under, but, owing to platform above-mentioned incidence relation form based on hiding link is carried out Pretreatment, therefore, the semantic information that only have selected SemanticDescriptor_A is looked into as semanteme The scope ask, therefore, adopts and compares embodiment 1 in this way and merge the semanteme of all permissions and retouch For stating resource, the speed of semantic query can be improved further.Compared with Example 2, originally The semantic query method that embodiment provides, it is possible to indefinite for the path of semantic description resource Scene.
At this it should be noted that above-described embodiment 1-3 provide semantic query method, when looking into When the request instruction of inquiry needs the external semantic information carried out beyond resource tree to expand, in step S2 also Including it needs to be determined that external semantic information to be associated, step S3 is additionally included in external semantic letter Breath carries out semantic query.In the case of including combining step, combining step includes, merges Semantic description resource that step S2 determines and external semantic information.
Embodiment 4
The semantic query system's that Fig. 4 provides for the embodiment of the present invention 1, refers to Fig. 4, should be towards The semantic query system's of resource tree, including:
Receiver module 10, is used for receiving semantic query request, and the request of described semantic query includes Target resource information.
Determine module 11, for determining the semantic description money allowing under this target resource information to access Source.
Enquiry module 12, for determining in the described semantic description resource that module determines described, Semantic query is carried out according to the request of described semantic query.
Specifically, it is determined that module 11, it is used for determining under this target resource information respective path permission The all semantic description resources accessed.
Its specific works process such as above-described embodiment 1, does not repeats them here.
The semantic query system's of resourceoriented tree that the present embodiment provides, each due to resource tree The corresponding semantic description resource of resource node, multiple semantic description resources are entered according to tree Row fractional distribution, therefore, the semantic description money allowing to access determined according to target resource information Source is more relevant to the description object of required inquiry, and removal/sieve removes and description object not phase The semantic description resource closed, that is, be decreased to the scope of semantic query and description object relatively phase The semantic description resource closed, therefore semantic query speed is high;It addition, the visit when inquiring about Ask control aspect, the semantic query method of existing Semantic-Oriented data base cannot tackle this by The diversified access control problem brought in semantic information is dispersed in resource tree, and this Bright from resource tree, corresponding semantic information can be extracted according to access control right, therefore, can The problem controlled is accessed with effective process.
Embodiment 5
The semantic query system's that Fig. 5 provides for the embodiment of the present invention 2, refers to Fig. 5, should be towards The semantic query system's that the semantic query system's of resource tree provides with above-described embodiment 4 is similar, Include receiver module 10 equally, determine module 11 and enquiry module 12, owing to three is above-mentioned Embodiment 1 there has been and describe in detail, do not repeat them here.
The difference of the present embodiment and embodiment 4 is the most only described.Specifically, also include: pre- If module 13, being used for pre-setting incidence relation table, described incidence relation table is used for record description Object class belonging to object and the corresponding relation of the information relevant with described semantic description resource.
Described determine module 11, for determining involved description object according to the request of described semantic query Affiliated object class, and in described incidence relation table, search phase according to the described object class determined The information relevant with described semantic description resource answered, according to finding under target resource information The relevant information of described and described semantic description resource, determine both in this target resource information pair The described semantic description money allowing to access for information about found is met again under the path answered Source.
Preferably, the corresponding relation in described incidence relation table is: described object class and this object The path format one_to_one corresponding of class place semantic description resource;Described determine module 11, for root The object class belonging to involved description object is determined according to the request of described semantic query, and according to determining Object class searches the path lattice of corresponding described semantic description resource in described incidence relation table Formula, according to the described path format found under target resource information, determines both in this target The described semantic description allowing to access of this path format is met again under the path that resource information is corresponding Resource.
Its specific works process such as above-described embodiment 2, does not repeats them here, similarly, by this System, it can be seen that although semantic description resource SemanticDescriptor_1 and SemanticDescriptor_2 under the path of target resource address, but, based on hiding chain In the range of not being incorporated into the semantic information of semantic query under the incidence relation form connect, Therefore, for this relative embodiment 1 merges the semantic description resource of all permissions, Ke Yijin One step improves the speed of semantic query.
Furthermore it is preferred that the corresponding relation in described incidence relation table is: each object class pair Answer a semantic description resource class, a semantic description resource can include that multiple semantic description provides Source category;Described determine module 11, for determining involved description according to the request of described semantic query Object class belonging to object, and look in described incidence relation table according to the described object class determined Look for the semantic description resource class corresponding with this object class, according to lookup under target resource information The described semantic description resource class arrived, determines both under the path that this target resource information is corresponding Meet again the described semantic description resource allowing to access of this semantic description resource class.
Its specific works process such as above-described embodiment 3, does not repeats them here, similarly, by this Although it can be seen that SemanticDescriptor_A and SemanticDescriptor_1 is in inquiry Under the path of target resource address, but, owing to platform above-mentioned association based on hiding link is closed It is that form has carried out pretreatment, therefore, only have selected the semantic letter of SemanticDescriptor_A Cease the scope as semantic query, therefore, adopt and compare the language merging all permissions in this way For justice describes resource, the speed of semantic query can be improved further, it addition, can be used in The indefinite scene in path of semantic description resource.
In the explanation of this value, the semantic query system's of embodiment 4 and embodiment 5 offer is also Can include merging module, for determining that module 11 determines at least two semantic description resource Merge.
It is understood that the principle that is intended to be merely illustrative of the present of embodiment of above and adopt Illustrative embodiments, but the invention is not limited in this.General in this area For logical technical staff, without departing from the spirit and substance in the present invention, can make Various modification and improvement, these modification and improvement are also considered as protection scope of the present invention.

Claims (10)

1. the semantic query method of a resourceoriented tree, it is characterised in that including:
S1, receives semantic query request, and the request of described semantic query includes target resource information;
S2, determines the semantic description resource allowing to access under this target resource information;
S3, in the described semantic description resource that step S2 determines, please according to described semantic query Ask and carry out semantic query.
The semantic query method of resourceoriented tree the most according to claim 1, its feature exists In, described step S2, determine and under this target resource information respective path, allow all of of access Semantic description resource.
The semantic query method of resourceoriented tree the most according to claim 1, its feature exists In, also include:
Pre-setting incidence relation table, described incidence relation table is for belonging to record description object Object class and the corresponding relation of the information relevant with described semantic description resource;
Described step S2 includes:
S21, determines the object class belonging to involved description object according to the request of described semantic query, and Search in described incidence relation table according to the described object class determined and retouch with described semanteme accordingly State the information that resource is relevant;
S22, has with described semantic description resource under target resource information according to finding The information closed, determines not only under the path that this target resource information is corresponding but also meet having of being found The described semantic description resource allowing to access of pass information.
The semantic query method of resourceoriented tree the most according to claim 3, its feature exists In, the corresponding relation in described incidence relation table is: described object class and this object class place language Justice describes the path format one_to_one corresponding of resource;
Described step S21, determines belonging to involved description object according to the request of described semantic query Object class, and in described incidence relation table, search corresponding institute predicate according to the object class determined Justice describes the path format of resource;
Described step S22, according to the described path format found under target resource information, Determine not only under the path that this target resource information is corresponding but also meet the permission of this path format and access Described semantic description resource.
The semantic query method of resourceoriented tree the most according to claim 3, its feature exists In, the corresponding relation in described incidence relation table is: the corresponding semantic description of each object class Resource class, a semantic description resource includes multiple semantic description resource class;
Described step S21, determines belonging to involved description object according to the request of described semantic query Object class, and search in described incidence relation table and this object according to the described object class determined The semantic description resource class that class is corresponding;
Described step S22, according to the described semantic description money found under target resource information Source category, determines not only under the path that this target resource information is corresponding but also meet this semantic description money The described semantic description resource allowing to access of source category.
6. the semantic query system's of a resourceoriented tree, it is characterised in that including:
Receiver module, is used for receiving semantic query request, and the request of described semantic query includes mesh Mark resource information;
Determine module, for determining the semantic description resource allowing to access under this target resource information;
Enquiry module, for determining in the described semantic description resource that module determines described, root Semantic query is carried out according to the request of described semantic query.
The semantic query system's of resourceoriented tree the most according to claim 6, its feature exists In, described determine module, allow under this target resource information respective path to access for determining All semantic description resources.
The semantic query system's of resourceoriented tree the most according to claim 6, its feature exists In, also include:
Presetting module, is used for pre-setting incidence relation table, and described incidence relation table is used for record Object class belonging to description object and the corresponding pass of the information relevant with described semantic description resource System;
Described determine module, for determining involved description object institute according to the request of described semantic query The object class belonged to, and search in described incidence relation table accordingly according to the described object class determined The information relevant with described semantic description resource, according to finding under target resource information The information that described and described semantic description resource is relevant, determines both corresponding in this target resource information Path under again meet found for information about allow access described semantic description resource.
The semantic query system's of resourceoriented tree the most according to claim 8, its feature exists In, the corresponding relation in described incidence relation table is: described object class and this object class place language Justice describes the path format one_to_one corresponding of resource;
Described determine module, for determining involved description object institute according to the request of described semantic query The object class belonged to, and in described incidence relation table, search corresponding institute according to the object class determined State the path format of semantic description resource, according to the described road found under target resource information Footpath form, determines not only under the path that this target resource information is corresponding but also meet this path format Allow the described semantic description resource accessed.
The semantic query system's of resourceoriented tree the most according to claim 8, its feature Being, the corresponding relation in described incidence relation table is: the corresponding semanteme of each object class is retouched Stating resource class, a semantic description resource can include multiple semantic description resource class;
Described determine module, for determining involved description object institute according to the request of described semantic query The object class belonged to, and search in described incidence relation table according to the described object class determined and be somebody's turn to do The semantic description resource class that object class is corresponding, according to the institute found under target resource information State semantic description resource class, determine not only under the path that this target resource information is corresponding but also meet The described semantic description resource allowing to access of this semantic description resource class.
CN201610301170.2A 2016-05-09 2016-05-09 The semantic query method and system of resourceoriented tree Active CN106021339B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610301170.2A CN106021339B (en) 2016-05-09 2016-05-09 The semantic query method and system of resourceoriented tree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610301170.2A CN106021339B (en) 2016-05-09 2016-05-09 The semantic query method and system of resourceoriented tree

Publications (2)

Publication Number Publication Date
CN106021339A true CN106021339A (en) 2016-10-12
CN106021339B CN106021339B (en) 2019-07-26

Family

ID=57098801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610301170.2A Active CN106021339B (en) 2016-05-09 2016-05-09 The semantic query method and system of resourceoriented tree

Country Status (1)

Country Link
CN (1) CN106021339B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515857A (en) * 2017-08-31 2017-12-26 科大讯飞股份有限公司 Semantic understanding method and system based on customization technical ability
CN108334353A (en) * 2017-08-31 2018-07-27 科大讯飞股份有限公司 Skill development system and method
CN108875086A (en) * 2018-07-18 2018-11-23 山东中创软件商用中间件股份有限公司 A kind of matching process and system of URI path resources
CN113656438A (en) * 2021-08-06 2021-11-16 北京数码大方科技股份有限公司 Data query method and device of data tree

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091228A (en) * 2014-06-17 2014-10-08 北京邮电大学 Systems for resource management, resource registering, resource inquiry and resource semantic corpus management of internet of things
CN104281693A (en) * 2014-10-13 2015-01-14 安徽华贞信息科技有限公司 Semantic search method and semantic search system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091228A (en) * 2014-06-17 2014-10-08 北京邮电大学 Systems for resource management, resource registering, resource inquiry and resource semantic corpus management of internet of things
CN104281693A (en) * 2014-10-13 2015-01-14 安徽华贞信息科技有限公司 Semantic search method and semantic search system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘文菊: "基于RDF视图的语义查询重写相关技术研究", 《万方数据库》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107515857A (en) * 2017-08-31 2017-12-26 科大讯飞股份有限公司 Semantic understanding method and system based on customization technical ability
CN108334353A (en) * 2017-08-31 2018-07-27 科大讯飞股份有限公司 Skill development system and method
CN107515857B (en) * 2017-08-31 2020-08-18 科大讯飞股份有限公司 Semantic understanding method and system based on customization technology
CN108334353B (en) * 2017-08-31 2021-04-02 科大讯飞股份有限公司 Skill development system and method
CN108875086A (en) * 2018-07-18 2018-11-23 山东中创软件商用中间件股份有限公司 A kind of matching process and system of URI path resources
CN113656438A (en) * 2021-08-06 2021-11-16 北京数码大方科技股份有限公司 Data query method and device of data tree
CN113656438B (en) * 2021-08-06 2023-12-12 北京数码大方科技股份有限公司 Data query method and device for data tree

Also Published As

Publication number Publication date
CN106021339B (en) 2019-07-26

Similar Documents

Publication Publication Date Title
KR101153064B1 (en) Systems and methods for fine grained access control of data stored in relational databases
US7657519B2 (en) Forming intent-based clusters and employing same by search
US7865521B2 (en) Access control for elements in a database object
US10747893B2 (en) Device and method for determining content of access control of data
CN101436192B (en) Method and apparatus for optimizing inquiry aiming at vertical storage type database
US9231974B2 (en) Dynamic policy-based entitlements from external data repositories
CN106021339A (en) A semantic query method and system for a resource tree
CN111193744B (en) Firewall strategy inquiry and elastic expansion method, system, equipment and storage medium
US8620926B2 (en) Using a hashing mechanism to select data entries in a directory for use with requested operations
US7730099B2 (en) Storage and retrieval of richly typed hierarchical network models
US20080034438A1 (en) Multiple hierarchy access control method
US20090319494A1 (en) Field mapping for data stream output
US20180198819A1 (en) Method and apparatus for generating incident graph database
US20050044075A1 (en) Method and apparatus for late-binding/dynamic pathname resolution
CN105373376A (en) Method and apparatus for configuring a software application
CN108241709A (en) A kind of data integrating method, device and system
US11409790B2 (en) Multi-image information retrieval system
CN107103034A (en) TFAS data directory information method of servicing based on LDAP
US6768989B2 (en) Collection recognizer
US9009731B2 (en) Conversion of lightweight object to a heavyweight object
US20220284309A1 (en) Aligning knowledge graphs using subgraph typing
US9569507B2 (en) Virtual directory server to process directory requests when information on an object is split across multiple data sources
US20090319471A1 (en) Field mapping for data stream output
CN106095947A (en) The semantic query access control method of resourceoriented tree and system
CN101052944B (en) Systems and methods for fine grained access control of data stored in relational databases

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant