RDF Flashcards

1
Q

What is Stardog’s data model?

A

A directed semantic graph

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does RDF stand for and what does it mean?

A

Resource Description Framework, provides a standardized model for representing data and its meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does W3C stand for, and what’s its purpose?

A

World Wide Web Consortium, and they are the main international standards organization for the internet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a directed graph?

A

A set of objects, called ‘nodes’, connected together by lines, called ‘edges’, that are ‘directed’ from one node to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the specific naming that RDF has for edges, source nodes, and target nodes?

A

Edge -> Predicate
Source node -> Subject
Target node -> Object
Image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a triple composed of?

A

A subject, predicate, and object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a class made up of?

A

A set of individuals (also known as instances or objects)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What purpose do classes and objects serve in a triple?

A

They act as either the subject or the object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the part of an RDF triple that connects the subject and object?

A

Predicate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the two ways in which a predicate is used?

A
  1. As an object property when it describes a relationship between two objects
  2. As a data property when it provides data about an object
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a graph made up of?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is an RDF graph made up of?

A

Multiple connected RDF triples

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the three types of RDF nodes?

A
  1. IRI - node with a unique identifier
  2. Blank node - node without a unique identifier
  3. Literal - node representing a literal value, like a number or date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Shorten the IRI below with a prefix rdf and local name type
http://www.w3.org/1999/02/22-rdf-syntax-ns#type

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are literals written?

A

They are written in quotes, followed by their datatype IRI:
"1963-03-22T21:44:00Z"^^xsd:dateTime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Where can you store prefix declarations when using Stardog?

A

In the database metadata, which allows you to simplify your actual query to only shorthand syntax

17
Q

What is the shorthand for writing string objects?

A

Simply use quotes, i.e”
"The Beatles"^^xsd:string –> "The Beatles"

18
Q

What’s the shorthand for rdf:type?

A

a

19
Q

What are the purposes of ;, ,, and . in Turtle syntax?

A

; - separate statements about the same subject
, - list multiple objects for the same statement about a subject
. - end the string of statements about a subject

E.g:
~~~
:Love_Me_Do a :Song ;
:name “Love Me Do: ;
:length 125 ;
:writer :John_Lennon, :Paul_McCartney .
~~~

20
Q

What are blank nodes used for?

A

They are used to describe a pattern of relationships where a part of that pattern is undefined.

E.g, ‘Please Please Me’ is an album that has a track on side 2 #1 called ‘Love Me Do’
~~~
:Please_Please_Me :track _:s2n1 [
:side 2 ;
:order 1 ;
:song :Love_Me_Do ] .
~~~

21
Q

How are blank nodes written?

A

They start with _: and must have a unique name from all the other blank nodes in the Turtle document, e.g. _:s2n1