RDF Cheatsheet
Unique Features
- Data model for representing information in a machine-readable format
- Based on subject-predicate-object triples
- Supports linking data across different sources and domains
- Widely used in the semantic web and linked data applications
- Can be queried using SPARQL
Triples
subject predicate object
Namespaces
@prefix prefix_name: <namespace_URI> .
Blank Nodes
_:blank_node_name
Literals
"literal_value"
"literal_value"^^<datatype_URI>
RDF Collections
( item1 item2 item3 )
RDF Lists
rdf:List rdf:first item1 ; rdf:rest rdf:nil .
rdf:List rdf:first item1 ; rdf:rest [ rdf:first item2 ; rdf:rest rdf:nil ] .
RDF Schema
rdfs:Class
rdfs:subClassOf
rdfs:subPropertyOf
rdfs:domain
rdfs:range
Ontologies
owl:Ontology
owl:imports
owl:Class
owl:ObjectProperty
owl:DatatypeProperty
owl:inverseOf
owl:TransitiveProperty
Resources