Terena EuroCAMP, 2006-04-03 <roland.hedberg@adm.umu.se>
RDF 101
The Semantic Web meets Resource Management
1
RDF 101 The Semantic Web meets Resource Management Terena - - PowerPoint PPT Presentation
RDF 101 The Semantic Web meets Resource Management Terena EuroCAMP, 2006-04-03 <roland.hedberg@adm.umu.se> 1 The Resource Description Framework The Resource Description Framework (RDF) is a language for representing information about
Terena EuroCAMP, 2006-04-03 <roland.hedberg@adm.umu.se>
1
The Resource Description Framework (RDF) is a language for representing information about things (metadata) that can be identified on the Web, even when they cannot be directly retrieved on the Web.
A W3C standard
2
A metadata record consists of a set of attributes, or elements, necessary to describe the resource in question.
3
Information is a collection of statements, each with a subject,verb and object - and nothing else. Everything, be it subject,verb or object, is identified with a Uniform Resource Identifier. One exception; a object can be a literal (string, integer,..)
4
S: <http://www.terena.nl/friend#roland> V: <http://www.openmetadir.org/om/0.1/element#knows> O: <http://www.terena.nl/friend#diego> . Everything is identified by a URI The verb is also known as a predicate and what you use as a predicate is a property Don’t forget the ‘.’
5
<http://www.terena.nl/friend#roland> <http://www.openmetadir.org/om/0.1/element#knows> <http://www.terena.nl/friend#diego>
6
RDF101 has an author who is Roland Hedberg
N-Triples <http://www.terena.nl/events/eurocamp2006#rdf101> <http://purl.org/dc/elements/ 1.1#author> “Roland Hedberg” . N3 @prefix dc: <http://purl.org/dc/elements/1.1#> . @prefix ec06: <http://www.terena.nl/events/eurocamp2006#> . ec06:rdf101 dc:author “Roland Hedberg” . RDF/XML
<rdf:RDF xmlns="http://purl.org/dc/elements/1,1#" xmlns:dc="http://purl.org/dc/elements/1,1#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="http://www.terena.nl/events/eurocamp2006#rdf101"> <author>Roland Hedberg</author> </rdf:Description>
</rdf:RDF>
7
Properties are defined in contexts Are these the same ? title = title Are these ? http://purl.org/dc/elements/1.1/title = http://openmetadir.org/om/0.1/title
8
@prefix foaf: <http://xmlns.com/foaf/0.1/> @prefix dc: <http://purl.org/dc/elements/1.1/> @prefix om: <http://www.openmetadir.org/om/0.1/> @prefix friend: <http://www.terena.nl/friend#>
9
friend:roland om:knows friend:diego; foaf:topic_interest “Skiing”@en .
friend:roland friend:DIEGO "Skiing"
foaf:topic_interest 10
friend:roland om:knows friend:diego; foaf:topic_interest “Skiing”@en ; foaf:currentproject “Spocp”,”OpenMetaDir”,”HLS”,”Swami/MD” .
friend:roland "Skiing"
foaf:topic_interest foaf:currentProject "Openmetadir" "HLS" "SWAMI/MD" "Spocp" friend:DIEGO 11
friend:roland "Ton" "Skiing"@en
foaf:topic_interest "Openmetadir" "HLS" "SWAMI/MD" "Spocp" "Verschuren" FOAF:Firstname FOAF:FamilyName "Holländare"@se
foaf:currentProject
friend:roland om:knows [ foaf:firstname “Ton”; foaf:familyname “Verschuren”;
foaf:topic_interest “Skiing”@en ; foaf:currentproject “Spocp”,”OpenMetaDir”,”HLS”,”Swami/MD” .
12
The OWL Web Ontology Language is intended to provide a language that can be used to describe the classes and relations between them that are inherent in Web documents and applications.
13
Sharing information and knowledge (for interoperability) Defining the relationships between different resources Understanding of the domain Representation of conceptualization
14
An ontology differs from an XML schema in that it is a knowledge representation, not a message format
15
Classes Relationship between classes Properties of classes Constrains on relationship between the classes and properties of the classes
16
OWL Lite; Supports simple classifications, allowing only cardinalities of 0 and 1 and only minimal constrains. OWL DL; Supports more complex ontologies, but with some guarantees, such as processing finishing in finite time. OWL Full; maximum freedom of RDF, with no computational guarantees.
17
18
The most basic concepts in a domain should correspond to classes that are the roots of various taxonomic trees. Properties let us assert general facts about the members of classes and specific facts about individuals. An individual is minimally introduced by declaring it to be a member of a class
19
A property is a binary relation. Two types
datatype properties, relations between instances of classes and RDF literals and XML Schema datatypes.
20
Domain Range
21
TransitiveProperty SymmetricProperty FunctionalProperty InverseOf InverseFunctionalProperty
22
In addition to designating property characteristics, it is possible to further constrain the range of a property in specific contexts in a variety of ways.
23
allValuesFrom, someValuesFrom cardinality, minCardinality, maxCardinality hasValue
24
equivalentClass, equivalentProperty sameAs differentFrom,AllDifferent intersectionOf,unionOf,
disjointWith
25
@prefix dcns: <http://purl.org/dc/elements/1.1/> @prefix dctermsns: <http://purl.org/dc/terms/> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix : <http://www.w3.org/2000/01/rdf-schema#> . dcns:title a rdf:Property; dcns:description "Typically, a Title will be a name by which the resource is formally known."@en-US; dcns:type <http://dublincore.org/usage/documents/principles/#element>; dctermsns:hasVersion <http://dublincore.org/usage/terms/history/#title-004>; dctermsns:issued "1999-07-02"; dctermsns:modified "2002-10-04"; :comment "A name given to the resource."@en-US; :isDefinedBy <http://purl.org/dc/elements/1.1/>; :label "Title"@en-US .
26
@prefix : <http://www.w3.org/2000/01/rdf-schema#> . @prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> . <http://xmlns.com/foaf/0.1/family_name> a rdf:Property,
:comment "The family_name of some person."; :domain <http://xmlns.com/foaf/0.1/Person>; :isDefinedBy <http://xmlns.com/foaf/0.1/>; :label "family_name"; :range :Literal; vs:term_status "testing" .
27
<http://xmlns.com/foaf/0.1/Person> a :Class,
:comment "A person."; :isDefinedBy <http://xmlns.com/foaf/0.1/>; :label "Person"; :subClassOf con:Person, wgs:SpatialThing, <http://xmlns.com/foaf/0.1/Agent>, <http://xmlns.com/wordnet/1.6/Agent>, <http://xmlns.com/wordnet/1.6/Person>;
<http://xmlns.com/foaf/0.1/Organization>, <http://xmlns.com/foaf/0.1/Project>; vs:term_status "stable" .
28
<http://www.w3.org/2000/10/swap/pim/contact#Person> a :Class; :comment "A person in the normal sense of the word."; :subClassOf :SocialEntity . <http://www.w3.org/2000/10/swap/pim/contact#SocialEntity> a rdfs:Class; :comment "The sort of thing which can have a phone number." . <http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing> a :Class; :comment "Anything with spatial extent, i.e. size, shape, or position. e.g. people, places, bowling balls, as well as abstract areas like cubes."; :label "SpatialThing" . <http://xmlns.com/wordnet/1.6/Agent> a :Class; :comment "an active and efficient cause; capable of producing a certain effect; \"their research uncovered new disease agents\""; :label "Agent [ 1 ]"; :subClassOf <http://xmlns.com/wordnet/1.6/Causal_agent> . <http://xmlns.com/wordnet/1.6/Person> a :Class; :comment "a human being; \"there was too much for one person to do\""; :label "Person [ 1 ]"; :subClassOf <http://xmlns.com/wordnet/1.6/Organism> . <http://xmlns.com/wordnet/1.6/Organism> a :Class; :comment "a living thing that has (or can develop) the ability to act or function independently"; :label "Organism [ 1 ]"; :subClassOf <http://xmlns.com/wordnet/1.6/Living_thing> .
29
30
Middleware is a lot about managing objects/ resources more specifically metadata about those. Identity management just one part If you want to future-proof your investment don’t chose a limiting framework And for godness sake describe your knowledge representation !
31
Lots of sources and sinks with their view of the world Harmonised view is essential Relationship between metadata from different places should be possible to express Version handling
32
Person Organisation Role Group Course CourseInstance ...
33
Ontologies for sources and sinks as well as for the metadirectory/registry The ontology relationsship between sources/ sinks and the metadirectory/registry
34
35
36
@prefix : <http://www.openmetadir.org/om/1.0/attr#> . @prefix om: <http://www.openmetadir.org/om/1.0/om#> .
:associatedDomain "umu.se"; :uid "umun0001"; :formalName "Umea University"@en, "Umeå universitet"; :lin "UMUID:1920187510089495044"; :name "umu", "umu"@en ];
37