protege

how can I recognize object properties vs datatype properties?

旧巷老猫 提交于 2019-11-30 00:52:38
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 class book have relation with edition class. so i use object properties but individual in this class

Sparql query for children, grandchildren, .. of a class

你。 提交于 2019-11-29 22:52:35
问题 I have an owl file I built in Protege. What is the sparql query which will select all the subclasses of a class and all the subclasses of those subclasses, so on and so on (Breadth First Search Sort of Manner)? 回答1: This might be answered by Sparql query Subclass or EquivalentTo, but that question and its answer contain a lot more information that what you're asking for here. You can't really enforce the search strategy (depth first vs. depth first), but you can (sort of) order subclasses by

Disjunction inside SWRL rule

回眸只為那壹抹淺笑 提交于 2019-11-29 13:08:25
I am using Protege 4.3 to make some SWRL rules. Is it possible to write a rule that contains a disjunction in it For instance : Person(?x), Age(?x,?age), (?age < 10 or ?age > 30) -> blabla(?x) Meaning all people having age < 10 OR > 30 You can't directly express a disjunction in the rule body the way that you'd like to, unfortunately, but there are some workarounds. The most direct solution is to write two rules: Person(?x), Age(?x,?age), ?age < 10 -> blah(?x) Person(?x), Age(?x,?age), ?age > 30 -> blah(?x) SWRL does support the use of class expressions (see more in Martin Kuba's OWL 2 and

Sparql query on restriction list (Equivalent To) in protégé

喜欢而已 提交于 2019-11-29 12:05:22
My ontology is about Cocktail. This is a cocktail named "AfterGlow" <owl:Class rdf:about="&cocktails;AfterGlow"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="&cocktails;aPourIngredient"/> <owl:someValuesFrom rdf:resource="&cocktails;JusAnanas"/> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="&cocktails;aPourIngredient"/> <owl:someValuesFrom rdf:resource="&cocktails;JusOrange"/> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="&cocktails;aPourIngredient"/> <owl

How to import specific classes and object properties from an ontology in Protege?

依然范特西╮ 提交于 2019-11-29 05:12:16
I want to import some classes in Protege from different ontologies to my ontology. For example, I need the classes foaf:Person , org:Site , vcard:Organization , and many more. I don't want to create them by myself (and modifying their IRI). When I did import the whole ontology (Schema.org, vCard, FOAF, …), I had many elements that I don't need. Is there any way to do it? — Have you looked at this thread: protege-project.136.n4.nabble.com/… — I tried to use it, but it didn't work. There are subtle moments, especially on step 5. Open your target ontology. Open the source ontology in the same

obtain the matrix in protege

五迷三道 提交于 2019-11-28 12:43:48
My work is about library book of recommendation systems . that as input I need book Classification ontology . in my ontology classify library books. 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. I design this ontology with protege 4.1. also I collected and Have got in part of belong book to categories manually. That a object properties is name “hasSubject” related individual book class with categories. Example book “A”

Sparql query on restriction list (Equivalent To) in protégé

余生长醉 提交于 2019-11-28 05:34:51
问题 My ontology is about Cocktail. This is a cocktail named "AfterGlow" <owl:Class rdf:about="&cocktails;AfterGlow"> <owl:equivalentClass> <owl:Class> <owl:intersectionOf rdf:parseType="Collection"> <owl:Restriction> <owl:onProperty rdf:resource="&cocktails;aPourIngredient"/> <owl:someValuesFrom rdf:resource="&cocktails;JusAnanas"/> </owl:Restriction> <owl:Restriction> <owl:onProperty rdf:resource="&cocktails;aPourIngredient"/> <owl:someValuesFrom rdf:resource="&cocktails;JusOrange"/> </owl

Adding statements of knowledge to an OWL Ontology in Protege)

心已入冬 提交于 2019-11-27 23:16:28
In my Ontology I have three classes, Player , Team , and Competition . I also have the two object properties, employs , and competesIn . The domain of employs is Team , and the range Player , the domain of competesIn is Team or Player and the range Competition . I want the Ontology to infer that if a Player is employed by a Team and that Team competes in a Competition then the Player also competes in that Competition . Is there any way to add this information to an Ontology without putting in the {Player} competesIn {Competition} for every single individual in the ontology? Joshua Taylor First

How to import specific classes and object properties from an ontology in Protege?

点点圈 提交于 2019-11-27 18:56:59
问题 I want to import some classes in Protege from different ontologies to my ontology. For example, I need the classes foaf:Person , org:Site , vcard:Organization , and many more. I don't want to create them by myself (and modifying their IRI). When I did import the whole ontology (Schema.org, vCard, FOAF, …), I had many elements that I don't need. Is there any way to do it? 回答1: — Have you looked at this thread: protege-project.136.n4.nabble.com/… — I tried to use it, but it didn't work. There

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