owl

SWRL rules in protege 3.4.8

ε祈祈猫儿з 提交于 2019-11-27 14:53:42
I created an ontology that contains the class Blood_Sugar this class contains 4 subclasses: Normal_BS, High_BS, Low_BS and Dangerous_BS. I would like to execute a SWRL rule on Protege 3.4.8 which permit to classify individuals of the supere class Blood_Sugar in subclasses according to their values. Blood_Pressure(?x) ∧ hasLevelvalue(?x, ?y) ∧ swrlb:greaterThan(?y, 126) ∧ swrlb:lessThan(?y, 500) → High_BS(?x) knowing that hasLevelValue is a DataType proprety, its domain is Blood_Sugar class and its range is INT On the Blood_Sugar class and thier subclasses class, I created the restriction

OWL's EquivalentClass vs. SubClassOf

别来无恙 提交于 2019-11-27 14:03:08
问题 What is the difference between EquivalentClass and SubClass of? While reading through OWL primer, i find the tutorial uses SubClassOf a lot to declare a new class, as follows SubClassOf( :Teenager DataSomeValuesFrom( :hasAge DatatypeRestriction( xsd:integer xsd:minExclusive "12"^^xsd:integer xsd:maxInclusive "19"^^xsd:integer ) ) ) Can I write EquivalentClass( :Teenager DataSomeValuesFrom( :hasAge DatatypeRestriction( xsd:integer xsd:minExclusive "12"^^xsd:integer xsd:maxInclusive "19"^^xsd

how can I recognize object properties vs datatype properties?

[亡魂溺海] 提交于 2019-11-27 12:32:16
问题 My ontology is book classification library. I have problems in this. I want to build a book classification ontology by protégé 4.1, this classification has 14 categories, beside the sibling classes Author, book, Isbn. Individuals in book class are book’s subject(about 600 subjects) , and individuals in author class are name’s author and also isbn class. then I'm confused in object properties and datatype properties. if hasEdition is in properties in my ontology then i say that every book in

What is the difference between RDF and OWL?

和自甴很熟 提交于 2019-11-27 09:57:08
I am trying to grasp the concept of Semantic Web. I am finding it hard to understand what exactly is the difference between RDF and OWL. Is OWL an extension of RDF or these two are totally different technologies? Christopher Gutteridge The semantic web comes in layers. This is a quick summary of the ones I think you're interested in. Update : Please note that RDFS is used to define the structure of the data, not OWL. OWL describes semantic relationships which normal programming, such as a C struct, isn't fussed about and is closer to AI research & set theory. Triples & URIs Subject - Predicate

Sparql query Subclass or EquivalentTo

我与影子孤独终老i 提交于 2019-11-27 09:20:55
I want to query all subclass of Nicotine (product). the result must be (Nasal form nicotine, Oropharyngeal from ni ..(4 items).. see in the picture) i try to query by rdfs:subClassOf+ and owl:equivalentClass+ but didn't work try from this example the code same here. PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT * WHERE { ?s owl:equivalentClass+ ?o . # and try ?s rdfs:subClassOf ?o filter(?s=<http://snomed.info/id/323283001>) } this image from protege Thank. The first query hard

How to infer isBrotherOf property between two individuals

纵饮孤独 提交于 2019-11-27 08:58:46
I need to infer that one individual is the brother of other one if they have the same father. So, if I have this: Bart hasFather Homer. Lisa hasFather Homer. Because Bart and Lisa have the same father, I would like to infer: Lisa hasBrother Bart. Is there any method to do that using any property characteristics? Joshua Taylor Use Property Chains and Rolification Antoine Zimmermann's answer is a very good start to this problem, and touches on the major point that you need to solve this sort of task: From x to each of x 's brothers, there is a path of the form hasFather o hasFather -1 . Now,

Fuseki SPARQL INSERT produces the “Error 400: SPARQL Query: No 'query=' parameter”

谁说我不能喝 提交于 2019-11-27 08:12:58
问题 I try to insert an individual into my ontology, but get the error: Error 400: SPARQL Query: No 'query=' parameter Fuseki - version 2.4.1 (Build date: 2016-11-04T18:59:20+0000) This is my SPARQL INSERT query #1: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX oo: <http://www.test.com/test-ontology.owl#> INSERT { oo:cap_123 rdf:type oo:MyTours . oo:cap_123 oo:active true . oo:cap_123 oo

Representing if-then sentence using OWL?

我们两清 提交于 2019-11-27 05:45:55
问题 I am working with basic OWL, and it's quite easy to represent some simple sentence like "Songoku is a lecturer, he teaches Maths". E.g.: <owl:Class rdf:ID="Lecturer"></owl:Class> <owl:Class rdf:ID="Subject"></owl:Class> <owl:Property rdf:ID="teach"> <rdfs:domain rdf:resource="#Lecturer"/> <rdfs:range rdf:resource="#Subject"/> </owl:Property> <Subject rdf:ID="Maths"></Subject> <Lecturer rdf:ID="Songoku"> <teach> <Subject rdf:about="#Maths"></Subject> </teach> </Lecturer> But I faced a problem

What is a good RDF library for .net? [closed]

丶灬走出姿态 提交于 2019-11-27 04:39:50
I'm looking for a library that can deal with RDF and OWL data. So far I have found: semweb (no owl support for all I know) rowlex (more of a 'browser' application) Your recommendations: LinqToRdf (very interesting, thanks mark!) ROWLEX is actually very cool (uses SemWeb internally). It is not just a browser app but rather an SDK written in C#. If you use ROWLEX, you do not directly interact with the tripples of RDF anymore (though you can), but gives an object oriented look&feel. There are two main usage scenarios: Business class first: You have your .NET business classes. You declaratively

Using SPARQL for limited RDFS and OWL reasoning

♀尐吖头ヾ 提交于 2019-11-26 23:28:27
问题 What I'm currently using rdflib for creating and managing RDF graphs in Python. RDFlib doesn't do any RDFS or OWL reasoning, though. This leads to results like the following: If I have A rdf:type MyType . MyType rdfs:subClassOf SuperType . and I ask select ?x where {?x rdf:type SuperType} then I get nothing, but I'd like to get A (by RDFS semantics). The same thing happens with owl:equivalentClass . If I have A rdf:type MyType . MyType owl:equivalentClass SiblingType . and I ask select ?x