RDFS Flashcards
(12 cards)
What is RDF Schema (RDFS)?
RDFS is an RDF vocabulary (ontology language) for defining classes, properties, and their constraints (domain, range), enabling basic schema modeling in RDF.
How do you declare a new class in RDFS?
Use: ex:MyClass rdf:type rdfs:Class .
How do you state that ex:Employee is a subclass of ex:Person in RDFS?
Use: ex:Employee rdfs:subClassOf ex:Person .
Is rdfs:subClassOf transitive, reflexive, or both?
rdfs:subClassOf is both transitive and reflexive.
What inference arises from a subclass relationship and rdf:type?
If A rdfs:subClassOf B and x rdf:type A, then x rdf:type B is inferred.
How do you declare a new RDF property in RDFS?
Use: ex:myProperty rdf:type rdf:Property .
How do you specify the domain of a property in RDFS?
Use: ex:myProperty rdfs:domain ex:SomeClass .
How do you specify the range of a property in RDFS?
Use: ex:myProperty rdfs:range ex:SomeClass .
How do you declare that ex:worksFor is a subproperty of ex:affiliatedTo?
Use: ex:worksFor rdfs:subPropertyOf ex:affiliatedTo .
What inference arises from a rdfs:domain declaration?
If p rdfs:domain C and x p y, then x rdf:type C is inferred.
What inference arises from a rdfs:range declaration?
If p rdfs:range C and x p y, then y rdf:type C is inferred.
What is RDFS entailment and what extra inferences does it allow?
RDFS entailment is an inference regime that applies rdfs semantics (subClassOf, subPropertyOf, domain, range), adding implicit triples (e.g. type inheritance, property hierarchy).