RDF Flashcards
What is Stardog’s data model?
A directed semantic graph
What does RDF stand for and what does it mean?
Resource Description Framework, provides a standardized model for representing data and its meaning
What does W3C stand for, and what’s its purpose?
World Wide Web Consortium, and they are the main international standards organization for the internet
What is a directed graph?
A set of objects, called ‘nodes’, connected together by lines, called ‘edges’, that are ‘directed’ from one node to another
What is the specific naming that RDF has for edges, source nodes, and target nodes?
Edge -> Predicate
Source node -> Subject
Target node -> Object
Image
What is a triple composed of?
A subject, predicate, and object
What is a class made up of?
A set of individuals (also known as instances or objects)
What purpose do classes and objects serve in a triple?
They act as either the subject or the object
What is the part of an RDF triple that connects the subject and object?
Predicate
What are the two ways in which a predicate is used?
- As an object property when it describes a relationship between two objects
- As a data property when it provides data about an object
What is a graph made up of?
What is an RDF graph made up of?
Multiple connected RDF triples
What are the three types of RDF nodes?
- IRI - node with a unique identifier
- Blank node - node without a unique identifier
- Literal - node representing a literal value, like a number or date
Shorten the IRI below with a prefix rdf
and local name type
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
Create a prefix that contains the ‘long ugly stuff’, minus the part you want as the local name. In this case the local name is type
: PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Then you just use the prefix rdf
, a colon, and the local name: rdf:type
How are literals written?
They are written in quotes, followed by their datatype IRI:"1963-03-22T21:44:00Z"^^xsd:dateTime