Presentation by TheodorosPloumis / @theoploumis
Meetup No 29 - 16 March 2016 - TechMinistry.
Under Attribution 4.0 International license.
Drupal meetup Thessaloniki will take place in Techministry at Wednesday 16 March 2016 from 19:00 to 21:00.
Word word link word word word word link word link word link.
-> Event description with url http://mydrupal.gr/node/2881 Word word Link of a City word word word word Link of a Place word link of a Date word link of a 24h Time.
One giant global graph
Source by Manu SpornyTim Berners-Lee, 2006
Absolute IRI which may include a # fragment.
<http://www.example.org/>
<http://www.example.org/#fragment>
Relative IRI resolved against base IRI.
<abc.rdf>
Base IRI, usually the query document IRI
<>
IRI shorthand using XML-style prefix ex and local name.
Declared with PREFIX (SPARQL) or @prefix (Turtle)
ex:name
A Unicode string with an optional language tag.
"hello"
"bonjour"@fr
"1234"
A Unicode string and datatype IRI for encoding datatypes.
"1234"^^<https://www.w3.org/2001/XMLSchema#string>
Abbreviated with an XML QName style as:
"1234"^^xsd:string
Short forms for several common datatypes:
-10
"-10"^^xsd:integer
1.2345
"1.2345"^^xsd:decimal
true
"true"^^xsd:boolean
Namespace | Prefix | Namespace URI |
---|---|---|
RDF | rdf: | http://www.w3.org/1999/02/22-rdf-syntax-ns# |
Dublin Core | dc: | http://purl.org/dc/elements/1.1/ |
FOAF | foaf: | http://xmlns.com/foaf/0.1/ |
XML Schema Datatypes | xsd: | http://www.w3.org/2001/XMLSchema# |
RDFS | rdfs: | http://www.w3.org/2000/01/rdf-schema# |
OWL | owl: | http://www.w3.org/2002/07/owl# |
Find prefixes at prefix.cc
Example RDFa: demos, real webpage, webpage parsed
Patterns | Modifiers | Query Forms |
---|---|---|
RDF terms | DISTINCT | SELECT |
triple patterns | REDUCED | CONSTRUCT |
Basic graph patterns | PROJECT | DESCRIBE |
Groups | ORDER BY | ASK |
OPTIONAL | LIMIT | |
UNION | OFFSET | |
GRAPH | ||
FILTER |
# prefix declarations
PREFIX foo: <http://example.com/resources/>
...
# dataset definition
FROM ...
# result clause
SELECT ... ?variables
# query pattern
WHERE {
... ?variables
}
# query modifiers
ORDER BY ...
LIMIT n OFFSET m
Presentation code: github.com/theodorosploumis/linked-data