Skip to content

Instantly share code, notes, and snippets.

@aindlq
Created July 15, 2013 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aindlq/5998356 to your computer and use it in GitHub Desktop.
Save aindlq/5998356 to your computer and use it in GitHub Desktop.
@prefix : <http://example.com/myFoaf/> .
@prefix myFoaf: <http://example.com/myFoaf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://example.com/myFoaf/>
rdf:type owl:Ontology .
myFoaf:Agent
rdf:type owl:Class ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty myFoaf:id
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty myFoaf:email
] .
myFoaf:Person
rdf:type owl:Class ;
rdfs:subClassOf myFoaf:Agent ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:minCardinality "2"^^xsd:nonNegativeInteger ;
owl:onProperty myFoaf:nick
] .
myFoaf:id
rdf:type owl:DatatypeProperty ;
rdfs:domain myFoaf:Agent ;
rdfs:range xsd:string .
myFoaf:nick
rdf:type owl:DatatypeProperty ;
rdfs:subPropertyOf myFoaf:id ;
rdfs:domain myFoaf:Person ;
rdfs:range xsd:string .
myFoaf:email
rdf:type owl:DatatypeProperty ;
rdfs:domain myFoaf:Agent ;
rdfs:range xsd:string .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment