0% found this document useful (0 votes)
39 views5 pages

Ontology Model Design

This RDFS ontology models a music production domain including events like performances and recordings, performers that can be groups or persons, and the relationships between them. It also models an education domain including places of education like schools, colleges and universities along with their properties and subclasses.

Uploaded by

k2hgmfmnhx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views5 pages

Ontology Model Design

This RDFS ontology models a music production domain including events like performances and recordings, performers that can be groups or persons, and the relationships between them. It also models an education domain including places of education like schools, colleges and universities along with their properties and subclasses.

Uploaded by

k2hgmfmnhx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

1. consider a simple ontology about animals.

Classes: We have defined two classes - Fruit and Citrus. Citrus is a subclass of Fruits.

Properties: We have defined two properties - hasColor and hasTaste, both having domain
Fruit.

Individuals: We have defined two individual fruits - apple and orange. Both have
properties hasColor and hasTaste. The orange fruit is also explicitly asserted as an
instance of Citrus.

This RDF-XML represents a simple ontology about fruits, with classes, properties, and
individual instances modeled accordingly.
Answer:
<rdf:RDF
xmlns:rdf="h p://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="h p://www.w3.org/2000/01/rdf-schema#"
xmlns:ont="h p://example.org/fruits#">

<!-- Classes -->


<rdfs:Class rdf:about="h p://example.org/fruits#Fruit"/>
<rdfs:Class rdf:about="h p://example.org/fruits#Citrus">
<rdfs:subClassOf rdf:resource="h p://example.org/fruits#Fruit"/>
</rdfs:Class>

<!-- Proper es -->


<rdf:Property rdf:about="h p://example.org/fruits#hasColor">
<rdfs:domain rdf:resource="h p://example.org/fruits#Fruit"/>
<rdfs:range rdf:resource="h p://www.w3.org/2001/XMLSchema#string"/>
</rdf:Property>
<rdf:Property rdf:about="h p://example.org/fruits#hasTaste">
<rdfs:domain rdf:resource="h p://example.org/fruits#Fruit"/>
<rdfs:range rdf:resource="h p://www.w3.org/2001/XMLSchema#string"/>
</rdf:Property>

<!-- Individuals -->


ti
tt
tt
tt
tt
tt
tt
tt
tt
tt
tt
tt
tt
<ont:Fruit rdf:about="h p://example.org/fruits#apple">
<ont:hasColor>red</ont:hasColor>
<ont:hasTaste>sweet</ont:hasTaste>
</ont:Fruit>
<ont:Fruit rdf:about="h p://example.org/fruits#orange">
<ont:hasColor>orange</ont:hasColor>
<ont:hasTaste>tangy</ont:hasTaste>
<rdf:type rdf:resource="h p://example.org/fruits#Citrus"/>
</ont:Fruit>

</rdf:RDF>

2. Design Generic Ontology Modelling in RDF-XML. Let's consider a simple ontology


about animals.

Classes: Defined classes for Animal, Mammal, and Bird. Mammal and Bird are
subclasses of Animal.
Properties: Defined properties such as hasColor (relating Animal to color) and
hasNumberOfLegs (relating Animal to the number of legs).
Individuals: Defined individual instances such as dog (a Mammal with color brown and 4
legs) and eagle (a Bird with color brown and 2 legs).

This RDF-XML represents a simple ontology about animals, with classes, properties, and
individual instances modeled accordingly.
Answer:

<rdf:RDF

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

xmlns:ont="http://example.org/fruits#">

<!-- Classes -->

<rdfs:Class rdf:about="http://example.org/fruits#Fruit"/>

<rdfs:Class rdf:about="http://example.org/fruits#Citrus">

<rdfs:subClassOf rdf:resource="http://example.org/fruits#Fruit"/>
tt
tt
tt
</rdfs:Class>

<!-- Properties -->

<rdf:Property rdf:about="http://example.org/fruits#hasColor">

<rdfs:domain rdf:resource="http://example.org/fruits#Fruit"/>

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>

</rdf:Property>

<rdf:Property rdf:about="http://example.org/fruits#hasTaste">

<rdfs:domain rdf:resource="http://example.org/fruits#Fruit"/>

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>

</rdf:Property>

<!-- Individuals -->

<ont:Fruit rdf:about="http://example.org/fruits#apple">

<ont:hasColor>red</ont:hasColor>

<ont:hasTaste>sweet</ont:hasTaste>

</ont:Fruit>

<ont:Fruit rdf:about="http://example.org/fruits#orange">

<ont:hasColor>orange</ont:hasColor>

<ont:hasTaste>tangy</ont:hasTaste>

<rdf:type rdf:resource="http://example.org/fruits#Citrus"/>

</ont:Fruit>

</rdf:RDF>

3. Design the ontology model for following:

a. Classes: We have defined three classes - Person, Employee, and Department.


Employee is a subclass of Person.
b. Properties: We have defined two properties - worksFor and hasSalary.
worksFor relates individuals of type Person to instances of Department, while
hasSalary relates individuals of type Employee to their salary values.
Individuals: We have defined three individual instances - John (a Person), Jane
(an Employee), and HR (a Department). Jane works for the HR department and
has a salary of 50000.

This RDF-XML represents a simple ontology about employees, departments, and their
relationships.

Answer:

<rdf:RDF

xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

xmlns:ont="http://example.org/ontology#">

<!-- Classes -->

<rdfs:Class rdf:about="http://example.org/ontology#Person"/>

<rdfs:Class rdf:about="http://example.org/ontology#Employee">

<rdfs:subClassOf rdf:resource="http://example.org/ontology#Person"/>

</rdfs:Class>

<rdfs:Class rdf:about="http://example.org/ontology#Department"/>

<!-- Properties -->

<rdf:Property rdf:about="http://example.org/ontology#worksFor">

<rdfs:domain rdf:resource="http://example.org/ontology#Person"/>

<rdfs:range rdf:resource="http://example.org/ontology#Department"/>

</rdf:Property>

<rdf:Property rdf:about="http://example.org/ontology#hasSalary">

<rdfs:domain rdf:resource="http://example.org/ontology#Employee"/>

<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer"/>

</rdf:Property>
<!-- Individuals -->

<ont:Person rdf:about="http://example.org/ontology#John"/>

<ont:Employee rdf:about="http://example.org/ontology#Jane">

<ont:worksFor rdf:resource="http://example.org/ontology#HR"/>

<ont:hasSalary>50000</ont:hasSalary>

</ont:Employee>

<ont:Department rdf:about="http://example.org/ontology#HR"/>

</rdf:RDF>

4. Model the following music production ontology using RDFS


Performance, Recording, Arrangement are Events. SoloPerformance is
a type of Performance. Performances have Performers. Performers
may be a Group or a Person. Performers have names of type string (In
case of a Group, this is the group name). "hasMember" is a property of
a Group and the values of the property must be of type Person.
AudioRecording and VideoRecording are types of Recording.
5. Model the following education ontology in RDFS using RDF-XML/Turtle.
School, College and University are places of education. International university
is a type of university; A School has a school bus. Buses have numbers.
University has buildings. Each building has a code number. Cafeteria and
library are types of building

1. https://cw.fel.cvut.cz/old/_media/courses/osw/s2-rdfs-solution.pdf

You might also like