Open kareniel opened 7 years ago
Documents from which to get the basic necessary vocubulary:
The relation between an instance and its class is stated through the rdf:type
property.
rdf:type
-> property to attribute classes to subjects
rdfs:Resource
-> class of every subject
So to simply define a new thing, you would declare:
<thing> <rdf:type> <rdfs:Resource>
But this is not necessary because it is implied by every statement.
Main modeling constructs provided by RDF Schema:
Construct | Syntactic form | Description |
---|---|---|
type (a property) | I rdf:type C | I (a resource) is an instance of C (a class) |
Class (a class) | C rdf:type rdfs:Class | C (a resource) is an RDF class |
Property (a class) | P rdf:type rdf:Property | P (a resource) is an RDF property |
subClassOf (a property) | C1 rdfs:subClassOf C2 | C1 (a class) is a subclass of C2 (a class) |
subPropertyOf (a property) | P1 rdfs:subPropertyOf P2 | P1 (a property) is a sub-property of P2 (a property) |
domain (a property) | P rdfs:domain C | domain of P (a property) is C (a class) |
range (a property) | P rdfs:range C | range of P (a property) is C (a class) |
These basic components should be defined in a
rdf/xml
file. We need a script to import anyrdf/xml
file, and then a script that serves as an init process for the server app.write definition as rdf/xml