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.

Slides:



Advertisements
Similar presentations
RDF/XML Syntax Specification Ming Jing Team W. Tutorial Overview - Introduction - An XML Syntax for RDF - Syntax Data Model (*) Order - Concept and Standard.
Advertisements

CH-4 Ontologies, Querying and Data Integration. Introduction to RDF(S) RDF stands for Resource Description Framework. RDF is a standard for describing.
RDF using N3. Subject, Verb and Object All knowledge is just a set of statements. Everything is identified by URI Here a local URI but could point to.
The Semantic Web – WEEK 4: RDF
Introduction to RDF Based on tutorial at
1 RDF Tutorial. C. Abela RDF Tutorial2 What is RDF? RDF stands for Resource Description Framework It is used for describing resources on the web Makes.
E © 2002 Dario Aganovic Resource Description Framework Schema (RDFS) Dario Aganovic Industrial PhD-student NPI Production Kista, Ericsson AB and Production.
Shelley Powers, O’Reilly SNU IDB Lab. Hyewon Kim
ESDSWG2011 – Semantic Web session Semantic Web Sub-group Session ESDSWG 2011 Meeting – Semantic Web sub-group session Wednesday, November 2, 2011 Norfolk,
RDF Tutorial.
© Copyright IBM Corporation 2014 Getting started with Rational Engineering Lifecycle Manager queries Andy Lapping – Technical sales and solutions Joanne.
Quratulain Rajput Faculty of Computer Science, IBA Spring2013
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.
SPARQL for Querying PML Data Jitin Arora. Overview SPARQL: Query Language for RDF Graphs W3C Recommendation since 15 January 2008 Outline: Basic Concepts.
Dr. Alexandra I. Cristea RDF.
RDF Kitty Turner. Current Situation there is hardly any metadata on the Web search engine sites do the equivalent of going through a library, reading.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
The RDF meta model: a closer look Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations.
Resource Description Framework ( RDF ) Xinxia An.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
RDF: Concepts and Abstract Syntax W3C Recommendation 10 February Michael Felderer Digital Enterprise.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
Part II. Reification We can make statements about the RDF statements themselves. This can be used to annotate information In science, it is common to.
Logics for Data and Knowledge Representation
The Semantic Web Web Science Systems Development Spring 2015.
Integrating Live Plant Images with Other Types of Biodiversity Records Steve Baskauf Vanderbilt Dept. of Biological Sciences
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.
CC L A W EB DE D ATOS P RIMAVERA 2015 Lecture 2: RDF Model & Syntax Aidan Hogan
Metadata. Generally speaking, metadata are data and information that describe and model data and information For example, a database schema is the metadata.
Information Interchange on the Semantic Web an interactive talk by Piotr Kaminski, University of Victoria
Of 41 lecture 4: rdf – basics and language. of 41 RDF basic ideas the fundamental concepts of RDF  resources  properties  statements ece 720, winter.
Part I: Set Constructs. RDF Schema (RDFS) RDF does not provide mechanisms to define domain classes and properties RDFS is a vocabulary that provides many.
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.
Practical RDF Chapter 2. RDF: Heart and Soul Shelley Powers, O’Reilly SNU IDB Lab. Taikyoung Kim.
XML – Part III. The Element … This type of element either has the element content or the mixed content (child element and data) The attributes of the.
Chapter 7: Resource Description Framework (RDF) Service-Oriented Computing: Semantics, Processes, Agents – Munindar P. Singh and Michael N. Huhns, Wiley,
Semantic Web Exam 1 Review.
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lecture 5, Jan 23 th, 2003 Lotzi Bölöni.
Part II. Property domain and range restriction RDFS allows us to put restriction on the properties by specifying their domain and range, providing the.
Practical RDF Ch.6 Creating an RDF Vocabulary DongHyuk Im SNU OOPSLA Lab. Shelley Powers, O’Reilly August 19, 2004.
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,
The RDF meta model Basic ideas of the RDF Resource instance descriptions in the RDF format Application-specific RDF schemas Limitations of XML compared.
Description of Information Resources: RDF/RDFS (an Introduction)
Practical RDF Ch.2 Junwon Jung SNU OOPSLA Lab. Shelley Powers, O’Reilly August 5, 2004.
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:
EEL 5937 Ontologies EEL 5937 Multi Agent Systems Lotzi Bölöni.
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.
Motivation Dynamically identify and understand information sources Provide interoperability between agents in a semantic manner Enable distributed extensible.
Silterra, April 2004 RDF, RSS and all that THREADING THE RDF MAZE.
Knowledge Technologies Manolis Koubarakis 1 Some Other Useful Features of RDF.
Other RDF Capabilities. Exercise: Write the following information into a set of statements (triples) and then draw them into and RDF graph The article.
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.
Setting the stage: linked data concepts Moving-Away-From-MARC-a-thon.
Linked Data & Semantic Web Technology The Semantic Web Part 4. Resource Description Framework (1) Dr. Myungjin Lee.
Service-Oriented Computing: Semantics, Processes, Agents
Charlie Abela Department of Intelligent Computer Systems
Knowledge Representation Part V RDF
Chapter 2 RDF Syntax 1.
Service-Oriented Computing: Semantics, Processes, Agents
Resource Description Framework
Service-Oriented Computing: Semantics, Processes, Agents
Department of Artificial Intelligence
CC La Web de Datos Primavera 2016 Lecture 2: RDF Model & Syntax
Presentation transcript:

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 to the Semantic Web: “Anyone can say Anything about Any topic” A resource is anything with identity (URI), and could be physical (rock, river, fault) or digital (image, document, webpage, or a collection of these) Hence, Resource Description Framework (RDF) is a language that describes resources (e.g., web pages or entire web site), and data, metadata, and other languages (RDFS, OWL)

URI and URIref Resources are identified on the Web by the URI (Uniform Resource Identifier), URI is a character string that identifies an abstract or physical resource on the Web URI references are used to name all kinds of things in RDF Unlike URL, URI does not have to have a network location! In RDF, URIrefs are used only to identify things (they cannot be retrieved on the Web) However, Linked Data uses http to retrieve data Browsers use URIrefs to retrieve things

URIref URIref (URI reference) is a URI with an optional fragment identifier at the end, that identifies: An individual A type (class) A property A property value

Absolute and relative URIref Absolute URIref identifies a resource independently of the context in which the URIref appears, for example: The absolute URIref for the rdf:description Qname is: ns#description Relative URIref is a shorthand form of the absolute URIref in which the prefix is missing. Therefore it requires information from the context to fill in the omitted prefix. For example, the relative URIref geol4123_6123.htm when it appears in the resource would be filled out to the following absolute URIref:

Qualified names (Qname) A namespace, or vocabulary, is a collection of names, identified by URIrefs. For example, the namespace for rdf is: These names may be qualified names (Qnames), which are identifiers of the ‘prefix:name’ form, given by a namespace prefix (e.g., rdf, rdfs), followed by a colon (:), followed by a local part (e.g., type, description) For example rdf:type, rdf:description

Resource Description Framework RDF is an ontology language for the representation of information and metadata about resources and objects on the Web RDF is a namespace or vocabulary, with the rdf prefix RDF has three notations: RDF triples RDF graph RDF/XML

RDF triple statement An RDF statement is a triple (S, P, O), where: S is a URIref, called subject; it may not be a literal P is a URIref, called property (predicate); may not be a literal O is either a URIref or a literal value, called an object A subject resource, S, may have a property P with value from O (a class), or a P property with value O (a literal) Depending on whether the object is a class or a literal, the rdf statements can be of either of the following two forms: or “O”

RDF is a vocabulary A vocabulary, made of RDF statements, is a set of unique URIrefs, which can be specified by either: qualified names (e.g., rdf : type, rdf : about, rdf : resource, dc : title, dc : creater, dc : date), which are used as properties of the rdf statements NOTE: dc is the prefix for the Dublin Core vocabulary that describes document metadata, and is reused in many ontologies fragment identifiers, which are used to denote subjects or objects of the rdf statements, e.g.,

RDF graph RDF triples can be denoted with nodes, representing subjects and objects, and directed arcs or edges (from S to O), representing predicates (properties) A node may be identified by a URIref or it can be a litteral or blank node An arc is identified by a URIref Only absolute URIrefs are used as labels of the nodes and arcs URIrefs are shown with ellipses Literals are shown with boxes Properties are labeled with character strings

RDF graph - example has creation date of September 1, 2000 and is written in English Hassan Babaie en September 1,

Hassan Babaie Associate Professor

Porosity HydraulicProperty Aquifer test HydraulicConductivity Hydrogeologist has ConfinedAquiferUnconfinedAquifer A Graph represents multiple statements S O P SOP

latitude Location Sample longitude takes Geochemist hasLocation Affiliation has Image A Graph represents multiple statements

Examples of SPO Minerals: micaMinerals: identified-by Geologist:G1234 Minerals:micaMinerals:cleavage “one direction” “One direction” Minerals:HabitMinerals:habit “flaky” < “flaky”

RDF graph for the example “one direction”“Flaky” Minerals: mica Minerals: identified-by Geologist:G1234 Minerals:mica Minerals:cleavage “one direction” Minerals:Habit Minerals:habit “flaky”

RDF/XML notation of the example <rdf : RDF xml : base = “ xmlns : rdf = “ xmlns : dc = “ xmlns : min = “ one-direction flaky

Notes for the previous code Qualified names (e.g., dc : date, min : cleavage) are used to abbreviate the URIrefs rdf statement is nested in the rdf : Description qualified name The rdf : about specifies the subject of each rdf statement The rdf : resource specifies the object of the rdf statement Because the xml : base URIref: ( is defined, the absolute URIref is given by the concatenation of the local URIref (fragment identifier), i.e., the base URIref and #mica The prefix namespace for the Mineralogy vocabulary (i.e., min) is given by the xmlns : min = “ The prefix for the Dublin Core namespace is given by 'dc‘ whose URIref is given at the top of the code

RDF Ordered List using N3 syntax An ordered list of the periods in the Mesozoic era can be given in the Notation 3 (N3) format as SPO: time : Mesozoic time : dividedInto (time : Triassic time : Jurassic time : Cretaceous). Note: N3 (notation 3) is an RDF serialization format which uses qname (qualified name) N3 first requires defining local qnames by binding a prefix to the global URI For example, binding the ‘strat’ and ‘time’ prefixes to the Stratigraphy and Time ontologies is done as strat time :

Using Prefixes Now we can use the prefixes to define an RDF triple For example: we can say that Triassic precedes Jurassic (notice the period at the end of the N3 statement): time : Triassictime : precedestime: Jurassic.

One subject with n properties and objects We can even make a list of predicates and objects for a single subject in one N3 statement. These are separated with a semicolon We can list the data for the Asmari Formation as follows (note: Asmari is the subject): strat : Asmarirdf : typestrat : Formation; strat : FormationThickness “200 m”; strat : FormationLithology “limestone”; strat : FormationAge “Oligo-Miocene”; strat : FormationFacies “Shallow Marine”; strat : FormationFossil “Foraminifera, algae, bryozoa, echinoid”; …

Use comma to separate objects If several triples share the same subject and predicate, we use a comma to separate the objects The fact that the Mesozoic Era has three periods: Triassic, Jurassic, and Cretaceous, can be stated in one (instead of three) RDF statement in the N3 format: Mesozoic has periods Triassic, Jurassic, and Cretaceous time : Mesozoictime : period time : Triassic, time : Jurassic, time : Cretaceous.

‘a’ for ‘rdf:type’ In N3, we use the letter ‘a’ to substitute for ‘rdf:type’ So, we can make statements such as ‘sulfide is a mineral’ (defined in mineralogy ontology, prefix: ‘min’) or ‘rhyolite is a felsic volcanic rock’ (defined in the Petrology ontology, prefix: ‘petr’). min : Sulfiderdf : typemin : Mineral or min : Sulfide amin : Mineral petr : Rhyolite rdf : type FelsicVolcanicRock or petr : Rhyolitea FelsicVolcanicRock

RDF vocabulary In RDF, an individual resource is assigned as an instance of another resource (class) with the rdf : type predicate “Idaho pluton is a pluton” is written in RDF triple as: petr: IdahoPlutonrdf : typepetr : pluton The rdf : Property is the class of all property resources, and allows defining all the attributes that describe the resource (e.g., can define color and cleavage for Mineral) e.g., define ‘deforms’ to be a property: struc : deformsrdf : typerdf : Property

rdf : Description, rdf : about, rdf : resource Because RDF is resource description framework, the rdf : Description begins the description of an RDF statement rdf : about is an attribute of the rdf : Description, and indicates the subject of the rdf statement rdf : resource is an attribute of the property, and indicates the object of the RDF statement

rdf : ID property rdf : datatype property rdf : ID is an attribute of the rdf : Description It indicates the subject of the RDF statement … rdf : datatype is an attribute of the property element, and has XSD datatype as value; allows defining the type of literals to the property Statement: Faultfault:length “ 20 “ is written as: 20

RDF containers RDF has three constructs to be used as collections of resources: rdf : Bag For grouping of resources without order rdf : Seq For grouping of resources with order rdf : Alt Is a special type of rdf: Bag used for describing a set of equivalent alternatives

rdf:_n predicates, rdf : Bag RDF has a set of special predicates: rdf:_1, rdf:_2, …, rdf:_n, to associate a container as the subject with a resource it contains as the rdf:. Group plagioclase (resources) without order min: Plagioclaserdf : typerdf : Bag; rdf:_1 min : albite; rdf:_2 min : anorthite; rdf:_3 min : oligoclase; rdf:_4 min : andesine; rdf:_5 min : labradorite; rdf:_6 min : bytownite. petr : gabbromin:mineralmin:Plagioclase.

Rdf : rdf:. planet: Planets rdf : type rdf : Seq; rdf:_1 planet : Mercury; rdf:_2 planet : Venus; rdf:_3 planet : Earth; rdf:_4 planet : Mars; rdf:_5 planet : Jupiter; rdf:_6 planet : Saturn; rdf:_7 planet : Uranus; rdf:_8 planet : Neptune. planet: Sunplanetsplanet : Planets.

rdf : people:. gsu : webpagerdf : typerdf : Alt; rdf:_1 ; rdf:_2. people: Babaiefoaf : homepagegsu : webpage.

Blank or anonymous node (bnode) Sometimes, we want to say something about an individual with certain properties, but we do not want to name that node, i.e., identify it with a URI (or we don’t have the URI), but want to use the node as a structured entity, i.e., an abstract template. For example, the social networks do not issue a URI to members; the data about the members are connected to the blank node In many-valued relationships, we may need to introduce auxiliary nodes, to connect many objects to one subject Blank nodes are used for existential variables (e.g., someone), representing subject or object, for which we want to make assertions but cannot address a URI (someone know someone else) Since they do not have a URI, bnodes cannot be referenced globally; they can only be referred to locally

bnode … Let’s assume that we want to say something about some geologist who has made a map, and this someone has name Babaie, and has name Babaie mapped_by

bnode … bnodes can only be used for a subject or an object, not for a predicate, which always needs a URI For example, we may have information about a subject (someone) but do not care to identify it In this case, we use bnode and put the predicate and object in a square bracket set [] Let’s say that we know that there is an outcrop of basalt, and that it is located in Nevada. We state the two statements (with bnode as subject) as follows: [ rdf : type petr: outcrop; geog: located-in geog : Nevada ] rdf : typegeog : located_in petr : Outcropgeog : Nevada

Why bnode? RDF only supports binary predicates in one statement, i.e., relations between two resources We cannot say, for example, that Geologist studies Mineral and geologist images Microstructures in one statement In such a case, the solution is to create an auxiliary node (resource), that represents say study, and associate the new node to the geologist, and then link the node to the Mineral and Microstructure This is similar to a university which, through a blank node representing address, connects to a series of address attributes (see image above) Atlanta “30303” GSU GA

Referring to a bnode Here is how to write: “geochemical sample N22 was taken in an outcrop which is located in Nevada”: geochem : SampleN22 geochem : takenIn [ a petr: Outcrop geog: locatedIn : Nevada ]. Notice that we are using ‘a’ for ‘rdf:type’, and that geochemistry ontology defines the Sample class and takenIn property rdf : type geog : located_in petr : Outcrop geog : Nevada geochem : taken-in

Using bnodes with rdf : nodeID bnodes can be referred to by assigning node ids to them, using the rdf : nodeID qualified name The serialization of the previous rdf graph is: Nevada Outcrop1 rdf : type geog : located_in petr : Outcrop geog : Nevada geochem : taken-in