Skip to content

Instantly share code, notes, and snippets.

@AKovtunov
Last active July 23, 2017 16:38
Show Gist options
  • Save AKovtunov/415036e50dfa72ce031cf7f953be3bed to your computer and use it in GitHub Desktop.
Save AKovtunov/415036e50dfa72ce031cf7f953be3bed to your computer and use it in GitHub Desktop.
@base <http://example.com/>.
@prefix ex: <http://example.com/>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
ex:Animal rdf:type rdfs:Class;
rdfs:comment "Live cells".
ex:Mammal rdf:type rdfs:Class;
rdfs:comment "Subclass of animal";
rdfs:subClassOf ex:Animal.
ex:Human rdf:type rdfs:Class;
rdfs:comment "Human being";
rdfs:subClassOf ex:Mammal.
ex:Person rdf:type rdfs:Class;
rdfs:comment "You and me";
rdfs:subClassOf ex:Human.
ex:Pet rdf:type rdfs:Class;
rdfs:comment "Pet of a human";
rdfs:subClassOf ex:Animal.
ex:Bird rdf:type rdfs:Class;
rdfs:comment "Bird";
rdfs:subClassOf ex:Animal.
ex:Dog rdf:type rdfs:Class;
rdfs:comment "Dog";
rdfs:subClassOf ex:Animal.
ex:Eagle rdf:type rdfs:Class;
rdfs:comment "Bird";
rdfs:subClassOf ex:Bird.
ex:size rdf:type rdfs:Property;
rdfs:comment "A size of an object";
rdfs:domain ex:Animal;
rdfs:range xsd:integer.
ex:hasName rdf:type rdfs:Property;
rdfs:comment "Named";
rdfs:domain ex:Animal;
rdfs:range xsd:string.
ex:numberOfLegs rdf:type rdfs:Property;
rdfs:comment "#OFLEGS";
rdfs:domain ex:Mammal;
rdfs:range xsd:integer.
ex:isOwnerOf rdf:type rdfs:Property;
rdfs:domain ex:Person;
rdfs:range ex:Animal.
ex:Fido rdf:type ex:Dog;
ex:size 2;
ex:hasName "Fido";
ex:numberOfLegs 4.
ex:Noel rdf:type ex:Person;
ex:size 1;
ex:hasName "Niel";
ex:numberOfLegs 2;
ex:isOwnerOf ex:Fido.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment