DOC PREVIEW
UT Dallas SE 5V81 - OWL_Modelling_Problems - Answers

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Sample OWL Modelling ProblemsBelow are snippets of OWL code representing class definitions and datatype definitions that include property restrictions and cardinality restrictions. For each OWL snippet described in Turtle code below, provide a description of what the class represents. Do not worry about namespace definitions or any other syntax-related issues.(1: What does the class ‘problem:thisClass’ represent?problem:thisClass rdfs:subClassOf problem:Person; rdfs:subClassOf [ rdf:type owl:Restriction; owl:onProperty problem:attendsUniversity; owl:someValuesFrom [ rdf:type rdfs:Datatype; owl:onDatatype xsd:string; owl:withRestrictions ([xsd:pattern “[A-Za-z]+Texas[A-Za-z]”]) ] ].Answer: problem:thisClass represents people that attend at least one university where the word “Texas” is in the name of the university (2: What does the class ‘problem2:thisClass’ represent?problem2:thisClass rdfs:subClassOf problem2:Apartment; rdfs:subClassOf [ rdf:type owl:Restriction; owl:onProperty problem:hasRentPrice; owl:hasValue “600”^^xsd:integer ].Answer: problem2:thisClass represents apartments whose rent price must be $600 (presumably per month, though this is not stated in the code)(3: What does the class ‘problem3:thisClass’ represent?problem3:thisClass rdfs:subClassOf problem3:Dog rdfs:subClassOf [ rdf:type owl:Restriction; owl:cardinality 1; owl:onProperty problem3:hasOwner ];OWL Modelling Problems Page 1rdfs:subClassOf [ rdf:type owl:Restriction; owl:minCardinality 1; owl:onProperty problem3:hatesCat ]. Answer: problem3:thisClass represents dogs that have exactly 1 owner and hate at least 1 cat) (4: What does the class ‘problem4:thisClass’ represent?problem4:thisClass rdfs:subClassOf problem4:Apartment . rdfs:subClassOf [ rdf:type owl:Restriction; owl:cardinality 1; owl:onProperty problem4:hasWasherDryer ]; rdfs:subClassOf [ rdf:type owl:Restriction; owl:onProperty problem4:rentPrice; owl:AllValuesFrom [ rdf:type rdfs:Datatype; owl:onDatatype xsd:integer; owl:withRestrictions ( [ xsd:maxInclusive 600; ] ) ] ].Answer: problem4:thisClass represents apartments that have exactly one washer/dryer and is at most $600 for all of its rent prices (again, presuming that it is $600/month, even though it is not stated in the code) (5: What values does the datatype below represent?[] rdf:type rdfs:Datatype; owl:datatypeComplementOf [ rdf:type rdfs:Datatype; owl:onDatatype xsd:string;OWL Modelling Problems Page 2owl:withRestrictions ( [ xsd:pattern “702 Johnson Drive, Apt # 6[0-5][0-9], Johnson Apartments”; ] ) ] .Answer: The above datatype represents all strings that do NOT match the pattern “702 Johnson Drive, Apt # 6[0-5][0-9], Johnson Apartments”(6: What types of instances below belong to the class ‘Problem6:FriendsOfJeff’ defined below?Problem6:FriendsOfJeff rdf:type ex:Class;owl:unionOf ( Problem6:Alex Problem6:Beth Problem6:Sherry [ rdf:type owl:Class; owl:oneOf ( Problem6:BossA Problem6:BossB Problem6:BossC ) ] [ rdf:type owl:Restriction; owl:onProperty Problem6:friendsWith; owl:hasValue Problem6:Alex ]).Answer: Problem6:FriendsOfJeff contains the union of the following instances: {Problem6:Alex,Problem6:Beth, Problem6:Sherry, one of Problem6:BossA Problem6:BossB Problem6:BossC , and any instance whose friendsWith property = Problem6:Alex (or more colloquially, anyone who is friends with Problem6:Alex)}OWL Modelling Problems Page


View Full Document

UT Dallas SE 5V81 - OWL_Modelling_Problems - Answers

Download OWL_Modelling_Problems - Answers
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view OWL_Modelling_Problems - Answers and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view OWL_Modelling_Problems - Answers 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?