Download presentation
Presentation is loading. Please wait.
Published byJake Secker Modified over 9 years ago
1
RDF – RESOURCE DESCRIPTION FRAMEWORK Antonio Bucchiarone FBK-IRST Trento, Italy 20 Novembre 2009
2
Esempio di documento RDF W3Schools Jan Egil Refsnes
3
RDF Resource, Property, and Property Value RDF identifies things using Web identifiers (URIs), and describes resources with properties and property values. A Resource is anything that can have a URI, such as "http://www.w3schools.com/rdf" A Property is a Resource that has a name, such as "author" or "homepage" A Property value is the value of a Property, such as "Jan Egil Refsnes" or "http://www.w3schools.com" (note that a property value can be another resource)
4
The following RDF document could describe the resource "http://www.w3schools.com/rdf": Jan Egil Refsnes http://www.w3schools.com
5
RDF Statements The combination of a Resource, a Property, and a Property value forms a Statement (known as the subject, predicate and object of a Statement).
6
RDF Statements Statement: "The author of http://www.w3schools.com/rdf is Jan Egil Refsnes". The subject of the statement above is: http://www.w3schools.com/rdf The predicate is: author The object is: Jan Egil Refsnes Statement: "The homepage of http://www.w3schools.com/rdf is http://www.w3schools.com". The subject of the statement above is: http://www.w3schools.com/rdf The predicate is: homepage The object is: http://www.w3schools.com
7
RDF File: First lines Example: http://www.w3schools.com/rdf/rdf_example.asp Example: http://www.w3schools.com/rdf/rdf_example.asp
8
RDF File – cont. 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#".
9
RDF File – cont. The element contains the description of the resource identified by the rdf:about attribute. The elements:,,, etc. are properties of the resource.
10
RDF Validator RDF Online Validator W3C's RDF Validation Service is useful when learning RDF. W3C's RDF Validation Service Here you can experiment with RDF files. The online RDF Validator parses your RDF document, checks your syntax, and generates tabular and graphical views of your RDF document.
11
RDF Validator Copy and paste the example below into W3C's RDF validator: W3Schools.com Jan Egil Refsnes The result should be http://www.w3schools.com/rdf/RDFvalidationresult.htm http://www.w3schools.com/rdf/RDFvalidationresult.htm
12
RDF Main Elements 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...
13
RDF Main Elements The element identifies a resource with the about attribute. The element contains elements that describe the resource: <rdf:Description rdf:about="http://www.recshop.fake/cd/Empire Burlesque"> Bob Dylan USA Columbia 10.90 1985
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.