1. First exercise : How to integrate data ?
For example : We have two different data set, X and Z.
We look at the first dataset X :
A simplified bookstore data (dataset “X”)
Next, change the Dataset X into a set
of relations. I have a sample for you.
Then, we have another bookstore data (Dataset
“Z”)
Now, your turn to change the Dataset Z
into a set of relations.
Model the following ontologies into set of relations :
- Herbivores, Carnivores,
and Omnivores are animals
- People are omnivores
- People have names of
type “string”
- Vegetarians are people
who are herbivores
- “eats” is a property of
animals and the values of the property must be of the type “food”
- Meat and Veggies are types of food
ANSWERS :
RDFS
: Herbivorerdfs:subClassOf:Animal.
: Carnivorerdfs:subClassOf:Animal.
: Omnivorerdfs:subClassOf:Animal.
: Personrdfs:subClassOf:Omnivore.
: hasNamerdfs:domain:Person.
: hasNamerdfs:domain:Person.
: Vegetarian rdfs:subClassOf:Person.
: Vegetarianrdfs:subClassOf:Herbivore.
: eats rdfs:domain: Animal.
: eats rdfs:range:Food.
: Meat df:type:Food.
: Meat rdf:type:Food.
: Veggies rdf:type:Food.
OWL
Class(: Herbivore partial : Animal)
Class(:Carnivore partial : Animal)
Class(:Omnivorepartial : Animal)
Class(: Person partial : Omnivore)
Restriction (: hasNameallValuesFrom(xsd:string)))
DatatypeProperty(:hasName)










































