BabyDayOut Ontology: Describing Picture with Classes, Instances, and Relations

Slide Note
Embed
Share

Ontology "BabyDayOut" is developed using RDF/RDFS to describe a picture. It includes classes such as Person, Animal, Baby, Picture, Man, and Gorilla with instances like John, KingKong, Jack, Peter, and Alex. Various relations like hasFriend, hasAnimalFriend, sonOf, depicts, hasEnemy, and hasTitle are defined. Ordered containers like Seq and Bag are used for grouping instances. The ontology is serialized in N3 format.


Uploaded on Sep 22, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Question Develop RDF/RDFS ontology named "BabyDayOut" describing the picture. Your ontology should have at least: 4 classes 5 instances 4 relations/properties 3 sub-classes 1 or more ordered containers. The ontology should be serialized in N3. Keep it simple....

  2. ANSWER Picture Ontology BabyDayOut.n3 @prefix owl: http://www.w3.org/2002/07/owl#. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix :< BabyDayOut.n3#>. :Person a rdfs: Class. :Animal a rdfs: Class. :Baby a rdfs: Class. :Picture a rdfs: Class. :Man a rdfs: Class. :Gorilla a rdfs: Class.

  3. rdfs:subClassOf Man rdfs:subClassOf :Person. Baby rdfs:subClassOf :Person. Gorilla rdfs:subClassOf :Animal.

  4. rdf:type OR a INSTANCES :john a :Baby; rdfs:label JOHN . :kingkong a :Gorilla; rdfs:label KINGKONG . :jack a :Man; rdfs:label JACK . :alex a :Man; rdfs:label ALEX . :peter a :Man; rdfs:label PETER . :poster a :Picture; rdfs:label BABY S DAY OUT .

  5. PROPERTIES rdf:Property :hasFriend a rdf:Property; rdfs:domain :Person; rdfs:range :Person. :hasAnimalFriend a rdf:Property; rdfs:domain :Baby; rdfs:range :Animal. :sonOf a rdf:Property; rdfs:domain :Baby; rdfs:range :Person. :depicts a rdf:Property; rdfs:domain :Picture; rdfs:range :Thing. :hasEnemy a rdf:Property; rdfs:domain :Person; rdfs:range :Gorilla. :hasTitle a rdf:Property; rdfs:domain :Picture; rdfs:range xsd:String.

  6. Ordered Containers (Bag, seq, etc.) :poster :depicts :john,:kingkong,:jack,:peter,:alex. (The usage is for ordered list, Alternatively;) :poster a rdf:Seq; rdf:_1 :john; rdf:_2 :kingkong; rdf:_3 :jack; rdf:_4 :peter; rdf:_5 :alex;

  7. Ordered Containers (Bag, seq, etc.) (The usage is for unordered list, Alternatively;) :poster a rdf:Bag; rdf:_1 :john; rdf:_2 :kingkong; rdf:_3 :jack; rdf:_4 :peter; rdf:_5 :alex;

  8. ASSERTION DATA :poster :hasTitle "BABY S DAY OUT"^^xsd:String . :baby :hasAnimalFriend : kingkong. :jack :hasFriend :peter, :alex. :peter :hasFriend :alex, :jack. :kingkong :hasEnemy :alex, :jack, :peter.

Related