RDF Vocab - gchq/LD-Explorer GitHub Wiki

The syntax of RDF is itself formally defined in a vocab too. Much of what this vocab covers isn't necessary to use directly (it can be inferred through usage) although there are a few resources within the rdf namespace that you will use liberally regardless of what other vocabs you use, in particular rdf:type to define types and rdf:Property which you often see when RDF is being used to define ontologies.

For more information about RDF generally, check out our RDF Guide.

Example

The following block expresses an RDF statement in a needlessly verbose way using the RDF vocab.

@prefix : <http://www.example.com/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

:statement a rdf:Statement ;
    rdf:subject :Bob ;
    rdf:predicate rdf:type ;
    rdf:object :Person .

This is equivalent to writing :

@prefix : <http://www.example.com/> .

:Bob a :Person .

Note that in the above block, a is just shorthand for rdf:type.