Resource Description Framework

Slides:



Advertisements
Similar presentations
The Semantic Web – WEEK 4: RDF
Advertisements

RDF Tutorial.
Semantic Web Introduction
RDF formats for Linked Data by Mabi Harandi. RDF is not a format, it is a model for data So: It will provide supports for different formats like :  Turtle.
Chapter 3 RDF Syntax 1. Topics Basic concepts of RDF resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals and Qnames.
Dr. Alexandra I. Cristea RDF.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF: Building Block for the Semantic Web Jim Ellenberger UCCS CS5260 Spring 2011.
LDK R Logics for Data and Knowledge Representation Resource Description Framework (RDF) Fausto Giunchiglia and Biswanath Dutta Fall’2011.
Resource Description Framework (RDF) Lecture # 6 Faculty of Computer Science, IBA.
Visual Models for Knowledge Engineering Madalina Croitoru
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Logics for Data and Knowledge Representation Resource Description Framework (RDF) Feroz Farazi.
1cs The Need “Most of the Web's content today is designed for humans to read, not for computer programs to manipulate meaningfully.” Berners-Lee,
Chapter 3 RDF Syntax 2. Topics Basic concepts of RDF Resources, properties, values, statements, triples URIs and URIrefs RDF graphs Literals, qnames Vocabularies.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
OWL Representing Information Using the Web Ontology Language.
Logics for Data and Knowledge Representation
© Copyright 2008 STI INNSBRUCK RDF and RDF Schema Semantic Web Lecture Lecture III – xx 2009 Dieter Fensel Slides.
The RDF/XML Serialization RDF statements can be written in RDF/XML very much like descriptions in non-RDF XML XML is increasingly used in all kinds of.
The Resource Description Framework And its application to thegateway.org For the IIAP Jon Jablonski, Research Assistant The Information.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
RDF and XML 인공지능 연구실 한기덕. 2 개요  1. Basic of RDF  2. Example of RDF  3. How XML Namespaces Work  4. The Abbreviated RDF Syntax  5. RDF Resource Collections.
Part I. Resource and AAA In the Semantic Web, anything is a ‘resource’ if anything can be said about it by anyone for any purpose The AAA slogan applies.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
RDF Containers In N3, we could say that Ed (with id 21) and Bill (with id 34) created a certain document
Semantic Web Exam 1 Review.
Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about the resources of the.
Introduction to the Semantic Web and Linked Data Module 1 - Unit 2 The Semantic Web and Linked Data Concepts 1-1 Library of Congress BIBFRAME Pilot Training.
Understanding RDF. 2/30 What is RDF? Resource Description Framework is an XML-based language to describe resources. A common understanding of a resource.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Dr. Alexandra I. Cristea RDF.
RDF/RDFS Tutorial. Introduction The Resource Description Framework (RDF) is recommended by the World Wide Web Consortium (W3C) to model meta-data about.
Practical RDF Ch.4 Specialized RDF Relationships: Reification, Containers, and Collections Kim, Jong-Nam SNU OOPSLA Lab. August 12, 2004.
Doc.: IEEE /0169r0 Submission Joe Kwak (InterDigital) Slide 1 November 2010 Slide 1 Overview of Resource Description Framework (RFD/XML) Date:
RDF Syntax and examples ดร. มารุต บูรณรัช : หัวข้อพิเศษด้านเทคโนโลยีสารสนเทศขั้นสูง - เทคโนโลยีเว็บเชิงความหมาย.
Chapter 3 RDF. Introduction Problem: What does an XML document mean? – XML is about data structures – Their meaning (semantics) is not apparent to a machine.
Chapter 3 RDF Syntax. RDF Overview RDF Syntax -- the XML encoding RDF Syntax – variations including N3 RDF Schema (RDFS) Semantics of RDF and RDFS – Axiomatic.
Practical RDF Chapter 4. Specialized RDF Relationships: Reification, Containers, and Collections Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Lim.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Practical RDF Chapter 3. The Basic Elements Within the RDF/XML Syntax Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
Semantic Web in Depth RDFa, GRDDL and POWDER Dr Nicholas Gibbins
Linked Data & Semantic Web Technology The Semantic Web Part 5. Resource Description Framework (2) Dr. Myungjin Lee.
Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins –
8.3.7 Compound Property Values Property values can be ▫Literals ▫Resource ▫Container ▫Collection, or… ▫Compound Value Compound Value ▫Has multiple value.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Introduction to RDF Sandro Hawke, Semantic Web Tutorial ISWC 2010.
Service-Oriented Computing: Semantics, Processes, Agents
Tutorial on Semantic Web
Charlie Abela Department of Intelligent Computer Systems
Charlie Abela Department of Intelligent Computer Systems
Introduction to Persistent Identifiers
Chapter 2 RDF Syntax 1.
Chapter 2 RDF Syntax 2.
SPARQL.
Service-Oriented Computing: Semantics, Processes, Agents
Introduction to the Semantic Web (tutorial) 2009 Semantic Technology Conference San Jose, California, USA June 15, 2009 Ivan Herman, W3C
Service-Oriented Computing: Semantics, Processes, Agents
Some Other Useful Features of RDF
INF385T: Information Modeling — Class 14 Semantic Web Vocabulary Systems RDF, RDFS, OWL Slides for November 30, 2016 Karen Wickett
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
Department of Artificial Intelligence
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
RDF 1.1 Concepts and Abstract Syntax
Grid Computing 7700 Fall 2005 Lecture 18: Semantic Grid
JSON for Linked Data: a standard for serializing RDF using JSON
Resource Description Framework (RDF)
Presentation transcript:

Resource Description Framework Semantic Web In Depth Resource Description Framework Dr Nicholas Gibbins – nmg@ecs.soton.ac.uk 2015-2016

What is the Resource Description Framework? A standard data model for the Semantic Web A knowledge representation language A family of data formats and notations

A data model Statements about resources in the form of S-P-O triples Collection of RDF statements represents a labeled, directed graph Abstract model with several serialization (i.e. file) formats Resource Resource Resource subject object edited by RDF Semantics Pat Hayes predicate knows Nick Gibbins Resource

A knowledge representation language RDF is used as the foundation for the other knowledge representation and ontology languages on the Semantic Web User Interface and Applications Trust Proof Signature Encryption SPARQL (queries) OWL Rules RDF Schema RDF XML + Namespaces URI Unicode

A family of data formats RDF/XML is the normative (standard) syntax Supported by almost all tools Not human-friendly RDF/N3 family Compact, human-friendly, non-XML syntaxes Variable tool support N3, Turtle, Ntriples Other XML and non-XML syntaxes exist: TriX, JSON-LD, etc

RDF Requirements

RDF requirements A means for identifying objects and vocabulary terms (URIs) A means for distinguishing between terms from different vocabularies (XML namespaces and qualified names) A means for serialising triples (XML)

URIs and URIrefs Standard identifiers for the Semantic Web Uniform Resource Identifiers are defined by RFC2396 http://example.org/ urn:isbn:0198537379 mailto:nmg@ecs.soton.ac.uk URI references (URIrefs) are URIs with optional fragment identifiers http://example.org/index.html#Introduction http://www.w3.org/1999/02/22-rdf-syntax-ns#type

XML namespaces and qualified names RDF uses XML namespaces to refer to elements of domain vocabularies Namespaces used to abbreviate URIrefs to qualified names (QNames) QNames cannot be used in attribute values in RDF/XML Use the URIref instead xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” namespace URI prefix namespace abbreviation http://www.w3.org/1999/02/22-rdf-syntax-ns#type rdf:type becomes

RDF/XML

RDF/XML RDF/XML is an XML-based format for expressing a collection of RDF triples (an RDF graph) Can be parsed by an XML parser to give an XML data model (Document Object Model, XML Infoset) Can be parsed by an RDF parser to give an RDF data model (an RDF graph)

The anatomy of an RDF/XML file <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.sciam.com/”> <dc:title> </dc:title> </rdf:Description> </rdf:RDF> Triple predicate <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.sciam.com/”> <dc:title>Scientific American</dc:title> </rdf:Description> </rdf:RDF> Triple object <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> </rdf:RDF> Other namespace declarations <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.sciam.com/”> </rdf:Description> </rdf:RDF> Triple subject <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” </rdf:RDF> RDF namespace declaration <?xml version=“1.0”?> XML declaration <?xml version=“1.0”?> <rdf:RDF </rdf:RDF> RDF document element http://www.sciam.com/ Scientific American http://purl.org/dc/elements/1.1/title

The anatomy of an RDF/XML file Resource-valued predicates use the rdf:resource attribute <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator rdf:resource=“mailto:john@example.org”/> </rdf:Description> </rdf:RDF> http://www.example.org/ mailto:john@example.org http://purl.org/dc/elements/1.1/creator

The anatomy of an RDF/XML file We can have multiple rdf:Description elements within an rdf:RDF element <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:title>Example Inc. Homepage</dc:title> </rdf:Description> <dc:creator rdf:resource=“mailto:john@example.org”/> </rdf:RDF> http://purl.org/dc/elements/1.1/creator mailto:john@example.org http://www.example.org/ Example Inc. Homepage http://purl.org/dc/elements/1.1/title

The anatomy of an RDF/XML file We can have multiple predicates within an rdf:Description element <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:title>Example Inc. Homepage</dc:title> <dc:creator rdf:resource=“mailto:john@example.org”/> </rdf:Description> </rdf:RDF> http://purl.org/dc/elements/1.1/creator mailto:john@example.org http://www.example.org/ Example Inc. Homepage http://purl.org/dc/elements/1.1/title

Class membership An object’s membership of a class is indicated using the rdf:type property <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#”> <rdf:Description rdf:about=“http://www.example.org/”> <rdf:type rdf:resource=“http://example.org/ontology#Website”/> </rdf:Description> </rdf:RDF> rdf:type http://www.example.org/ ex:Website

Abbreviated forms – class membership Replace rdf:Description with QName of class <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:ex=“http://example.org/ontology#”> <ex:Website rdf:about=“http://www.example.org/”/> </rdf:RDF> rdf:type http://www.example.org/ ex:Website

RDF/XML striped syntax Consider the following graph: http://www.example.org/ http://purl.org/dc/elements/1.1/creator mailto:john@example.org http://example.org/ontology#name John Smith

RDF/XML striped syntax Graph could be serialised using two rdf:Description elements <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator rdf:resource=“mailto:john@example.org”/> </rdf:Description> <rdf:Description rdf:about=“mailto:john@example.org”> <ex:name>John Smith</ex:name> </rdf:RDF>

RDF/XML striped syntax Alternatively, the second statement could be inserted within the predicate element of the first <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator> <rdf:Description rdf:about=“mailto:john@example.org”> <ex:name>John Smith</ex:name> </rdf:Description> </dc:creator> </rdf:RDF>

RDF/XML striped syntax The syntax is striped because property and class elements are nested alternately <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator> <rdf:Description rdf:about=“mailto:john@example.org”> <ex:name>John Smith</ex:name> </rdf:Description> </dc:creator> </rdf:RDF> <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator> <rdf:Description rdf:about=“mailto:john@example.org”> <ex:name>John Smith</ex:name> </rdf:Description> </dc:creator> </rdf:RDF>

Common RDF/XML idioms XML entities are defined for the XML namespace URI prefixes Used to abbreviate long URIrefs in attribute values (because QNames can’t be used there) <?xml version=“1.0”?> <!DOCTYPE rdf:RDF [ <!ENTITY rdf ‘http://www.w3.org/1999/02/22-rdf-syntax-ns#’> <!ENTITY dc ‘http://purl.org/dc/elements/1.1/’> <!ENTITY ex ‘http://example.org/ontology#’> ]> <rdf:RDF xmlns:rdf=“&rdf;” xmlns:dc=“&dc;” xmlns:ex=“&ex;”>

Common RDF idioms Assertions about the null URIref are about the RDF file itself <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“”> <dc:creator rdf:resource=“mailto:nmg@ecs.soton.ac.uk”/> </rdf:Description> </rdf:RDF>

Blank nodes (bNodes) Sometimes we have resources which we do not wish to identify with a URI These are blank nodes or anonymous resources http://www.example.org/ http://purl.org/dc/elements/1.1/creator http://example.org/ontology#name John Smith

Blank nodes (bNodes) The striped syntax simplifies the RDF/XML serialisation – remove the rdf:about attribute <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator> <rdf:Description> <ex:name>John Smith</ex:name> </rdf:Description> </dc:creator> </rdf:RDF>

Blank nodes (bNodes) The striped syntax is not sufficient to represent all graphs containing blank nodes unambiguously http://www.example.org/ dc:creator John Smith ex:name http://test.example.org/ dc:creator

Blank nodes (bNodes) <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator> <rdf:Description> <ex:name>John Smith</ex:name> </rdf:Description> </dc:creator> <rdf:Description rdf:about=“http://test.example.org/”> </rdf:RDF>

Blank nodes and node IDs Ambiguities resulting from blank nodes are resolved by using node IDs Node IDs are identifiers which are local to a given serialisation of an RDF graph Node IDs may not be referred to from outside the scope of the defining graph Node IDs are not guaranteed to remain unchanged when an RDF file is parsed and serialised The identifier strings may change but The graph structure will remain unchanged

Blank nodes and node IDs <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <dc:creator rdf:nodeID=“foo23”/> </rdf:Description> <rdf:Description rdf:about=“http://test.example.org/”> <rdf:Description rdf:nodeID=“foo23”> <ex:name>John Smith</ex:name> </rdf:RDF>

rdf:about versus rdf:ID So far, we have used the rdf:about attribute to specify the subjects of triples rdf:about takes a URIref as a value rdf:ID can be used to declare a new URIref within a document Within the file http://www.example.org/ontology declares a new URIref http://www.example.org/ontology#JohnSmith Analogous to the name and id attributes in HTML Relative to xml:base attribute <rdf:Description rdf:ID=“JohnSmith”>

Datatypes Literal values presented so far are plain and do not have a type Many applications need to be able to distinguish between different typed literals RDF uses XML Schema datatypes <rdf:Description rdf:about=“http://www.example.org/”> <dc:date rdf:datatype=“http://www.w3.org/2001/XMLSchema#date”>2003-05-23</dc:date> </rdf:Description>

Multilingual support In addition to typed literals, RDF also provides support for language annotations on literals RDF uses XML’s multilingual support Languages identified by ISO369 two letter codes <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“http://purl.org/dc/elements/1.1/”> <rdf:Description rdf:about=“http://www.example.org/foreword”> <dc:title xml:lang=“en”>Foreword</dc:title> <dc:title xml:lang=“fr”>Avant-propos</dc:title> </rdf:Description> </rdf:RDF>

Containers RDF provides means for describing groups of objects Membership in the group is denoted by the ordinal properties rdf:_1, rdf:_2, etc rdf:Bag mailto:john@example.org rdf:_1 rdf:type http://www.example.org/ rdf:_2 mailto:bill@example.org ex:members rdf:_3 mailto:sally@example.org

Containers Three types of container are available in RDF rdf:Bag – an unordered group, possibly with duplicates rdf:Seq – an ordered group rdf:Alt – a group of alternatives (translations, media types, etc)

Containers Special syntax for expressing collections rdf:li is a convenience element which is replaced with ordinal elements by RDF parsers <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <ex:members> <rdf:Bag> <rdf:li rdf:resource=“mailto:john@example.org”/> <rdf:li rdf:resource=“mailto:bill@example.org”/> <rdf:li rdf:resource=“mailto:sally@example.org”/> </rdf:Bag> </ex:members> </rdf:Description> </rdf:RDF>

Collections Collections are a different way of expressing ordered groups in RDF Containers are mutable – a third party could add new members to a container Collections are immutable – cannot be altered without rendering the collection ill-formed Similar to cons/car/cdr lists in Lisp

Collections rdf:List ex:members rdf:type http://www.example.org/ rdf:first mailto:john@example.org rdf:rest rdf:first mailto:bill@example.org rdf:rest rdf:first mailto:sally@example.org rdf:rest rdf:nil

Collections As before, special syntax for expressing collections rdf:parseType indicates special parse rules for an element <?xml version=“1.0”?> <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:ex=“http://example.org/ontology#”> <rdf:Description rdf:about=“http://www.example.org/”> <ex:members rdf:parseType=“Collection”> <rdf:Description rdf:about=“mailto:john@example.org”/> <rdf:Description rdf:about=“mailto:bill@example.org”/> <rdf:Description rdf:about=“mailto:sally@example.org”/> </ex:members> </rdf:Description> </rdf:RDF>

The RDF/N3 family

Ntriples, N3 and Turtle Simpler syntaxes than RDF/XML (hurrah!) Ntriples is the simplest (a subset of Turtle) N3 and Turtle are more concise Turtle is the standard version of N3 General syntax for a triple: <subject> <predicate> <object> . Resources are indicated <like this> Literals are indicated “like this”

The anatomy of an NTriples file <http://www.sciam.com/> <http://purl.org/dc/elements/1.1/title> “Scientific American” . http://www.sciam.com/ Scientific American http://purl.org/dc/elements/1.1/title

The anatomy of an Turtle/N3 file <http://www.example.org> <http://purl.org/dc/elements/1.1/creator> <mailto:john@example.org> ; <http://purl.org/dc/elements/1.1/title> “Example Inc. Homepage” . “;” allows grouping of triples with common subject http://purl.org/dc/elements/1.1/creator mailto:john@example.org http://www.example.org/ Example Inc. Homepage http://purl.org/dc/elements/1.1/title

The anatomy of a Turtle/N3 file <http://www.example.org> <http://purl.org/dc/elements/1.1/creator> <mailto:john@example.org> , <mailto:jill@example.org> . “,” allows grouping of triples with common subject and predicate http://purl.org/dc/elements/1.1/creator mailto:john@example.org http://www.example.org/ Example Inc. Homepage http://purl.org/dc/elements/1.1/title

Common RDF/N3 idioms @prefix used to introduce QName abbreviations to N3 and Turtle documents: @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix dc: <http://purl.org/dc/elements/1.1/> . @prefix ex: <http://example.org/ontology#> . <http://www.example.org> dc:creator <mailto:john@example.org> ; rdf:type ex:Website .

Common RDF/N3 idioms @base used to introduce a base URI relative to which all URI fragment identifiers are expanded (similar to use of xml:base in RDF/XML): @base <http://example.org/data> . @prefix foaf: <http://xmlns.com/foaf/0.1/> . <#john> foaf:name “John Smith” . contains the triple: <http://example.org/data#john> <http://xmlns.com/foaf/0.1/name> “John Smith” .

bNodes in N3 and Turtle <http://www.example.org/> dc:creator [ ex:name “John Smith” ] . Or with nodeIDs: <http://www.example.org/> dc:creator _:foo23 . <http://test.example.org/> dc:creator _:foo23 . _:foo23 ex:name “John Smith” .

Further Reading

RDF Status Original version published in 1999 Working group (RDF Core) formed in April 2001 Revised version published in early 2004 New RDF working group from in 2011 until 2013 New standard syntaxes (Turtle, JSON) Multiple graphs and graph stores

RDF references RDF homepage at W3C RDF Core Working Group homepage http://www.w3.org/RDF/ RDF Core Working Group homepage http://www.w3.org/2001/sw/RDFCore/ RDF Working Group homepage http://www.w3.org/2011/rdf-wg/ RDF/N3 Primer http://www.w3.org/2000/10/swap/Primer.html XML Schema Part 2: Datatypes http://www.w3.org/TR/xmlschema-2/