Download presentation
Presentation is loading. Please wait.
Published byJoella Hodges Modified over 9 years ago
1
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 01Dicembre 2009
2
Example 1 Jan Egil Refsnes http://www.w3schools.com
3
RDF Elements The subject of the statement above is: http://www.w3schools.com/rdf The predicate is: author The object is: Jan Egil Refsnes
4
Example 2 Bob Dylan USA Columbia 10.90 1985 Bonnie Tyler UK CBS Records 9.90 1988
5
Output Graph
6
Elements The first line of the RDF document is the XML declaration. The XML declaration is followed by the root element of RDF documents:. The xmlns:rdf namespace, specifies that elements with the rdf prefix are from the namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#". The xmlns:cd namespace, specifies that elements with the cd prefix are from the namespace "http://www.recshop.fake/cd#". The element contains the description of the resource identified by the rdf:about attribute. The elements:,,, etc. are properties of the resource.
7
The Element is the root element of an RDF document. It defines the XML document to be an RDF document. It also contains a reference to the RDF namespace:...Description goes here...
8
The Element The element identifies a resource with the about attribute. The element contains elements that describe the resource:
9
Example Bob Dylan USA Columbia 10.90 1985 The elements, artist, country, company, price, and year, are defined in the http://www.recshop.fake/cd# namespace. This namespace is outside RDF (and not a part of RDF). RDF defines only the framework. The elements, artist, country, company, price, and year, must be defined by someone else (company, organization, person, etc).
10
Properties as Attributes The property elements can also be defined as attributes (instead of elements):
11
Properties as Resources The property elements can also be defined as resources: …
12
The Element The element is used to describe an ordered list of values (For example, in alphabetical order). The element may contain duplicate values. George John Paul Ringo
13
The Element The element is used to describe a list of alternative values (the user can select only one of the values). CD Record Tape
14
The rdf:parseType="Collection" Attribute RDF collections are used to describe groups that can contains ONLY the specified members. A collection is described by the attribute rdf:parseType="Collection".
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.