Changes between Version 1 and Version 2 of PimoInference
- Timestamp:
- 03/23/06 12:37:01 (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PimoInference
v1 v2 2 2 3 3 We do '''inference during insert''' into the pimo. The rules used for inference are defined in a Jena rules file, you can [source:branches/gnowsis0.9/gnowsis-server/src/java/org/gnowsis/pimo/impl/rules/pimo-rdfs.rules read the rules]. Based on these rules, additional triples are created during insert. Also when you delete triples, the same rules are used to entail the other triples that have to be deleted. To limit the complexity, we '''limit inference to the TBox'''. So we infer the subclass and sub-property relations and also inverse triples. We do not infer instance relations and individual triples. When querying the pimo-service, you can rely on all subclass and subproperty and inverse relations. The missing Abox-related relations can be easily added, see below. 4 5 see also: 6 * PimoService 7 * [http://en.wikipedia.org/wiki/Tbox Tbox] 8 * [http://en.wikipedia.org/wiki/Abox Abox] 4 9 5 10 When you want to add many triples yourself using the inference, use the following methods. If you insert to PimoStorage directly, no inference will be done (for performance reasons). … … 18 23 19 24 === Querying with regards to Abox inference === 20 To get all instances of a class ClassX 25 To get all classes of all instances, use this SeRQL query: 26 {{{ 27 select x, y from {x} rdf:type {t} rdfs:subClassOf {y} 28 USING NAMESPACE rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 29 }}} 21 30 31 To get all instances of Pimo:Person, use this: 32 {{{ 33 select x from {x} rdf:type {t} rdfs:subClassOf {pimo:Person} 34 USING NAMESPACE rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>, 35 pimo = <http://ontologies.opendfki.de/repos/ontologies/pim/pimo#> 36 }}} 22 37 38 To get all direct subclassed of Pimo:Thing, use this: 39 {{{ 40 select x from {x} pimoapi:directSubClassOf {pimo:Thing} 41 USING NAMESPACE rdf = <http://www.w3.org/1999/02/22-rdf-syntax-ns#>, 42 pimo = <http://ontologies.opendfki.de/repos/ontologies/pim/pimo#>, 43 pimoapi = <http://ontologies.opendfki.de/repos/ontologies/pim/pimo-api#> 44 }}} 23 45 24 see also:25 * [http://en.wikipedia.org/wiki/Tbox Tbox]26 * [http://en.wikipedia.org/wiki/Abox Abox]27 46 28 47