0% found this document useful (0 votes)
7 views16 pages

Modulo1 Leccion3

Uploaded by

Sofia Saiz Avila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views16 pages

Modulo1 Leccion3

Uploaded by

Sofia Saiz Avila
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

MASTER UNIVERSITARIO EN INVESTIGACIÓN EN

INTELIGENCIA ARTIFICIAL

Dr. Idafen Santana


[email protected]

RDF(S)
A11: WEB SEMÁNTICA Y DATOS ENLAZADOS
MÓDULO 1. RDF(S)

Asociación Española para la 1

Inteligencia Artificial (AEPIA)


Licencia
• This work is licensed under the license CC BY-NC-SA 4.0 International
• http://purl.org/NET/rdflicense/cc-by-nc-sa4.0

• You are free:


• to Share — to copy, distribute and transmit the work
• to Remix — to adapt the work

• Under the following conditions


• Non-commercial – You cannot use it for commercial purposes, nor for training inside a
commercial company
• Attribution — You must attribute the work by inserting
• “[source http://www.oeg-upm.net/]” at the footer of each reused slide
• a credits slide stating: “These slides are partially based on “RDF(S)” by R. García-Castro, O. Corcho, I.
Santana”
• Share-Alike
Índice
• Introducción general
• RDF
• Componentes de RDF
• Serialización de RDF
• RDF Schema
• Componentes de RDFS
• Serialización de RDFS

3
RDF Schema


• rdfs:member
rdfs:seeAlso
rdfs:isDefinedBy
rdf:value
rdfs:Resource rdfs:label
rdf:first rdfs:comment
rdf:subject
rdf:predicate
rdf:object rdf:type

rdf:rest rdfs:subPropertyOf rdfs:subclassOf

rdf:List rdfs:Container rdf:Statement rdf:Property rdfs:Class rdfs:Literal

rdfs:domain
rdfs:range

rdf:Bag rdf:Seq rdf:Alt rdfs:ContainerMembershipProperty rdfs:Datatype rdf:XMLLiteral

rdf:nil rdfs:member

4 rdf:_1 rdf:_2 rdf:_3


Descripción de propiedades
RDF(S)
rdf:Property rdfs:Class
rdf:type

rdf:type
Vocabulario rdfs:range rdfs:domain
rdfs:Literal person:hasName person:Person

rdfs:domain rdfs:subClassOf
rdfs:range
person:hasColleague person:Professor
rdfs:subClassOf

rdfs:domain
person:hasHomePage person:FullProfessor person:AssociateProfessor

rdfs:subClassOf

person:InterimAssociateProfessor
rdf:type rdf:type rdf:type

person:hasColleague person:hasColleague
Datos data:Oscar data:Asun data:Raul

person:hasName person:hasHomePage

5 “Óscar Corcho García” http://www.oeg-upm.net/


Anotación de recursos
rdfs:label
“Raúl García”

“Raúl”

rdfs:comment
data:Raul “Resource for Raúl García Castro”

http://delicias.dia.fi.upm.es/~rgarcia/

http://delicias.dia.fi.upm.es/~rgarcia/foaf.rdf

6
Resumen del vocabulario RDFS
Clases Propiedades Individuos
Classification
rdfs:Resource rdfs:subClassOf
rdfs:Class
Properties
rdfs:domain
rdfs:range
rdfs:subPropertyOf
Datatypes
rdfs:Literal
rdfs:Datatype
Containers
rdfs:Container rdfs:member
rdfs:ContainerMembershipProperty
Annotation
rdfs:label
rdfs:comment
rdfs:seeAlso
7 rdfs:isDefinedBy
Serialización en RDF/XML (1/2)
<?xml version="1.0"?>

<!DOCTYPE rdf:RDF [
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY person "http://www.oeg-upm.net/ontologies/person#" >
]>

<rdf:RDF xmlns="http://www.oeg-upm.net/ontologies/person#"
xml:base="http://www.oeg-upm.net/ontologies/person"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:person="http://www.oeg-upm.net/ontologies/person#">

<rdfs:Property rdf:about="&person;hasColleague">
<rdfs:range rdf:resource="#Person"/>
<rdfs:domain rdf:resource="#Person"/>
</rdfs:Property>

<rdfs:Property rdf:about="&person;hasHomePage">
<rdfs:domain rdf:resource="#FullProfessor"/>
</rdfs:Property>

<rdfs:Property rdf:about="&person;hasName">
<rdfs:domain rdf:resource="#Person"/>
<rdfs:range rdf:resource="&rdfs;Literal"/>
</rdfs:Property>
8
...
Serialización en RDF/XML (2/2)
<rdfs:Class rdf:about="#AssociateProfessor">
<rdfs:subClassOf rdf:resource="#Professor"/>
</rdfs:Class>

<rdfs:Class rdf:about="#FullProfessor">
<rdfs:subClassOf rdf:resource="#Professor"/>
</rdfs:Class>

<rdfs:Class rdf:about="#InterimAssociateProfessor">
<rdfs:subClassOf rdf:resource="#AssociateProfessor"/>
</rdfs:Class>

<rdfs:Class rdf:about="#Person"/>

<rdfs:Class rdf:about="#Professor">
<rdfs:subClassOf rdf:resource="#Person"/>
</rdfs:Class>

<FullProfessor rdf:about="#Asun">
<person:hasHomePage>http://www.fi.upm.es</person:hasHomePage>
<person:hasColleague rdf:resource="#Raul"/>
</FullProfessor>

<AssociateProfessor rdf:about="#Oscar">
<person:hasName>Oscar Corcho García</person:hasName>
<person:hasColleague rdf:resource="#Asun"/>
</AssociateProfessor>

<InterimAssociateProfessor rdf:about="#Raul"/>
9</rdf:RDF>
Serialización en Turtle (1/2)
@base <http://www.oeg-upm.net/ontologies/person> .
@prefix : <http://www.oeg-upm.net/ontologies/person#> .
@prefix person: <http://www.oeg-upm.net/ontologies/person#> .

:hasColleague a rdf:Property .
rdfs:domain :Person .
rdfs:range :Person ;

:hasHomePage a rds:Property .
rdfs:domain :FullProfessor .

:hasName a rdf:Property .
rdfs:domain :Person ;
rdfs:range rdfs:Literal .
… ‘a’ es equivalente a rdf:type
10
Serialización en Turtle (2/2)
:Person a rdfs:Class .
:Professor a rdfs:Class ;
rdfs:subClassOf :Person .
:FullProfessor a rdfs:Class ;
rdfs:subClassOf :Professor .
:AssociateProfessor a rdfs:Class ;
rdfs:subClassOf :Professor .
:InterimAssociateProfessor a rdfs:Class ;
rdfs:subClassOf :AssociateProfessor .
:Asun a :FullProfessor ;
:hasHomePage "http://www.fi.upm.es" ;
:hasColleague :Raul .
:Oscar a :AssociateProfessor ;
:hasName "Oscar Corcho García" ;
:hasColleague :Asun .
:Raul a :InterimAssociateProfessor .
11 ‘a’ es equivalente a rdf:type
RDF(S) inferencia
• Generación de nuevas tripletas en base partir de las ya
existentes en un grafo.

12
RDF(S) inferencia

13
RDF(S): limitaciones
• RDFS demasiado débil para describir recursos con suficiente nivel de detalle
• No permite restricciones de rangos y dominios

• No tiene restricciones de existencia/cardinalidad


• No tiene operadores booleanos


• No soporta propiedades transitivas, inversas o simétricas


14
RDF(S): limitaciones
• Dificultad para soportar razonamiento

15
MASTER UNIVERSITARIO EN INVESTIGACIÓN EN
INTELIGENCIA ARTIFICIAL

RDF(S)
© IDAFEN SANTANA PÉREZ

Asociación Española para la 16

Inteligencia Artificial (AEPIA)

You might also like