tripletasv2

71
LOGO Tripletas RDF Diego Herrera Galván E-mail: [email protected] www.dvherrera.blogspot.com 07/2009 Sistemas Basados en el Conocimiento UNIVERSIDAD TÉCNICA PARTICULAR DE LOJA La Universidad Católica de Loja

Upload: diego-herrera

Post on 18-Nov-2014

955 views

Category:

Education


0 download

DESCRIPTION

Descripcion de tripletas RDF y OWL para una ontologia con el tema "informatica"

TRANSCRIPT

Page 1: Tripletasv2

LOGO

Tripletas

RDF

Diego Herrera GalvánE-mail: [email protected]

07/2009

Sistemas Basados en el Conocimiento

UNIVERSIDAD TÉCNICA PARTICULAR DE LOJALa Universidad Católica

de Loja

Page 2: Tripletasv2

2

RDF

RDF está basado en la idea de identificar los recursos en la Web usando los Uniform Resource Identifiers o URIs, y describiendo los recursos en términos de propiedades simples y valores. Una descripción RDF es un conjunto de proposiciones simples (también llamadas sentencias o declaraciones) y una proposición se conoce también como una tripleta, porque está compuesta de 3 cosas: un sujeto, un predicado y un objeto. Estas sentencias se pueden representar formalmente usando la tripleta (sujeto, predicado, objeto), pero existe otra forma de notación que es mostrar una sentencia mediante grafos dirigidos. Así, en RDF es posible representar declaraciones simples sobre los recursos como un grafo (graph) de nodos y arcos que representan los recursos,  y sus propiedades y valores.

RDF (Resource Description Framework)

07/2009 Diego Herrera

Page 3: Tripletasv2

3

Los 3 elementos de una tripleta se representan mediante URIs.

Donde: Subject y Object son llamados nodos Predicate y Property son sinónimos Nodos sin nombre son nodos en blanco Subject puede ser una referencia URI o nodos en blanco Predicate puede ser una referencia URI Object puede ser una referencia URI, literal o un nodo en blanco.

RDF

Elementos de una tripleta

07/2009 Diego Herrera

Page 4: Tripletasv2

4

RDF

Ontología: Informática

07/2009 Diego Herrera

Page 5: Tripletasv2

Diego Herrera 5

DESCRIPCIÓN DE TRIPLETAS

Para poder realizar la validación de las tripletas tanto RDF como OWL se tome como referencia de la siguiente dirección: http://www.w3.org/RDF/Validator

07/2009

Page 6: Tripletasv2

Diego Herrera 6

CLASES

07/2009

Page 7: Tripletasv2

7

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl=http://www.w3.org/2002/07/owl# xmlns:ex=http://localhost/default> <owl:Class rdf:about="http://localhost/default#Chemestry" /> <owl:Class rdf:about="http://localhost/default#Computers" /> <owl:Class rdf:about="http://localhost/default#Contabilidad" /> </rdf:RDF>

Tripletas RDF

Class: Chemestry, Computers, Contabilidad

07/2009 Diego Herrera

Código RDF

Page 8: Tripletasv2

Diego Herrera 807/2009

Subject Predicate Objecthttp://localhost/default#Chemestry rdf: type rdfs: Class

http://localhost/default#Computers rdf: type rdfs: Class

http://localhost/default#Contabilidad rdf: type rdfs: Class

Elementos RDF

Tripletas RDF

Page 9: Tripletasv2

9

Gráfico del modelo de datos

07/2009 Diego Herrera

Tripletas RDF

Page 10: Tripletasv2

10

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#English" /> <owl:Class rdf:about="http://localhost/default#Fisica" /> <owl:Class rdf:about="http://localhost/default#HardDisk"> <rdfs:subClassOf rdf:resource="http://localhost/default#Hardware" /> </owl:Class></rdf:RDF>

07/2009 Diego Herrera

Class: English, Fisica, HardDisk, Software

Tripletas RDF

Código RDF

Page 11: Tripletasv2

Diego Herrera 11

Subject Predicate Object

http://localhost/default#English rdf: type rdfs: Class

http://localhost/default#Fisica rdf: type rdfs: Class

http://localhost/default#HardDisk rdf: type rdfs: Class

http://localhost/default#HardDisk rdf: SubClassOf http://localhost/default#Hardware

07/2009 Diego Herrera, [email protected]

Elementos RDF

Tripletas RDF

Page 12: Tripletasv2

Diego Herrera 12

Gráfico del modelo de datos

07/2009 Diego Herrera, [email protected]

Tripletas RDF

Page 13: Tripletasv2

13

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Hardware"> <owl:equivalentClass> <owl:Class> <owl:complementOf rdf:resource="http://localhost/default#Software" /> </owl:Class> </owl:equivalentClass> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Producer" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality>

Tripletas RDF

Class: Hardware

07/2009 Diego Herrera

Código RDF

Page 14: Tripletasv2

14

</owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Version" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Year" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> </owl:Class></rdf:RDF>

Tripletas RDF

07/2009 Diego Herrera

Class: Hardware (Cont….)

Page 15: Tripletasv2

Diego Herrera 15

Subject Predicate Object

http://localhost/default#Hardware rdf: type http://www.w3.org/2002/07/owl#Class

genid:A62794 rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Hardware owl: equivalentClass genid:A62794

genid:A62794 owl: complementOf http://localhost/default#Software

genid:A62795 rdf: type owl: Restriction

http://localhost/default#Hardware rdf: subClassOf genid:A62795

genid:A62795 owl: onProperty http://localhost/default#Producer

genid:A62795 owl: cardinality 1

07/2009

Elementos RDF

Tripletas RDF

Page 16: Tripletasv2

Diego Herrera 1607/2009

Subject Predicate Object

genid:A62796 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Hardware rdf: SubClassOf genid:A62796

genid:A62796 owl: onProperty http://localhost/default#Version

genid:A62796 owl: cardinality 1

genid:A62797 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Hardware rdf: subClassOf genid:A62797

genid:A62797 owl: onProperty http://localhost/default#Year

genid:A62797 owl: cardinality 1

Tripletas RDF

Page 17: Tripletasv2

Diego Herrera 17

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 18: Tripletasv2

1807/2009 Diego Herrera

Class: Informatics

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Informatics"> <owl:equivalentClass> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <rdf:Description rdf:about="http://localhost/default#Science" /> </owl:unionOf> </owl:Class> </owl:equivalentClass> </owl:Class></rdf:RDF>

Page 19: Tripletasv2

Diego Herrera 19

Subject Predicate Object

http://localhost/default#Informatics rdf: type http://www.w3.org/2002/07/owl#Class

genid:A9904 rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Informatics owl: equivalentClass genid:A9904

genid:A9904 owl: unionOf genid:A9905

genid:A9905 rdf: first http://localhost/default#Science

genid:A9905 rdf: rest http://www.w3.org/1999/02/22-rdf-syntax-ns#nil

07/2009

Elementos RDF

Tripletas RDF

Page 20: Tripletasv2

Diego Herrera 20

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 21: Tripletasv2

2107/2009 Diego Herrera

Class: Informatics

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Informatics"> <owl:equivalentClass> <owl:Class> <owl:unionOf rdf:parseType="Collection"> <rdf:Description rdf:about="http://localhost/default#Science" /> </owl:unionOf> </owl:Class> </owl:equivalentClass> </owl:Class></rdf:RDF>

Page 22: Tripletasv2

Diego Herrera 22

Subject Predicate Object

http://localhost/default#Informatics rdf: type http://www.w3.org/2002/07/owl#Class

genid:A9904 rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Informatics owl: equivalentClass genid:A9904

genid:A9904 owl: unionOf genid:A9905

genid:A9905 rdf: first http://localhost/default#Science

genid:A9905 rdf: rest http://www.w3.org/1999/02/22-rdf-syntax-ns#nil

07/2009

Elementos RDF

Tripletas RDF

Page 23: Tripletasv2

Diego Herrera 23

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 24: Tripletasv2

2407/2009 Diego Herrera

Class: Laptops

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Laptops"> <rdfs:subClassOf rdf:resource="http://localhost/default#Computers" /> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#ProductNumber" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf>

Page 25: Tripletasv2

2507/2009 Diego Herrera

Class: Laptops

Tripletas RDF

Código RDF <owl: Restriction> <owl:onProperty rdf:resource="http://localhost/default#Series" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Model" /> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> </owl:Class></rdf:RDF>

Page 26: Tripletasv2

Diego Herrera 26

Subject Predicate Object

http://localhost/default#Laptops rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Laptops rdf: subClassOf http://localhost/default#Computers

genid:A9927 rdf: type http://www.w3.org/2002/07/owlRestriction

http://localhost/default#Laptops rdf: subClassOf genid:A9927

genid:A9927 owl: onProperty http://localhost/default#ProductNumber

genid:A9927 owl: cardinality 1

genid:A9928 rdf: type http://www.w3.org/2002/07/owl#Restriction

07/2009

Elementos RDF

Tripletas RDF

Page 27: Tripletasv2

Diego Herrera 27

Subject Predicate Object

http://localhost/default#Laptops rdf: subClassOf genid:A9928

genid:A9928 owl: onProperty http://localhost/default#Series

genid:A9928 owl: cardinality 1

genid:A9929 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Laptops rdf: subClassOf genid:A9929

genid:A9929 owl: onProperty http://localhost/default#Model

genid:A9929 owl: cardinality 1

07/2009

Elementos RDF

Tripletas RDF

Page 28: Tripletasv2

Diego Herrera 28

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 29: Tripletasv2

2907/2009 Diego Herrera

Class: Matematics, Memory

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Matematics"/> <owl:Class rdf:about="http://localhost/default#Memory"> <rdfs:subClassOf rdf:resource="http://localhost/default#Hardware"/> </owl:Class>

</rdf:RDF>

Page 30: Tripletasv2

Diego Herrera 30

Subject Predicate Object

http://localhost/default#Matematics rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Memory rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Memory rdf: subClassOf http://localhost/default#Hardware

07/2009

Elementos RDF

Tripletas RDF

Page 31: Tripletasv2

Diego Herrera 31

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 32: Tripletasv2

3207/2009 Diego Herrera

Class: Servers

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Servers"> <rdfs:subClassOf rdf:resource="http://localhost/default#Computers"/> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Series"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction>

Page 33: Tripletasv2

3307/2009 Diego Herrera

Class: Servers

Tripletas RDF

Código RDF

</owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Patent"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> </owl:Class>

</rdf:RDF>

Page 34: Tripletasv2

Diego Herrera 34

Subject Predicate Object

http://localhost/default#Servers rdf: type http://www.w3.org/2002/07/owl#Class

http://localhost/default#Servers rdf: subClassOf http://localhost/default#Computers

genid:A10015 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Servers rdf: subClassOf genid:A10015

genid:A10015 owl: onProperty genid:A10015

genid:A10015 owl: cardinality 1

genid:A10016 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Servers rdf: subClassOf genid:A10016

genid:A10016 owl: onProperty http://localhost/default#Patent

genid:A10016 owl: cardinality 1

07/2009

Elementos RDF

Tripletas RDF

Page 35: Tripletasv2

Diego Herrera 35

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 36: Tripletasv2

3607/2009 Diego Herrera

Class: Subjects

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#"> <owl:Class rdf:about="http://localhost/default#Subjects"> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#type_subject"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction>

Page 37: Tripletasv2

3707/2009 Diego Herrera

Class: Subjects

Tripletas RDF

Código RDF<owl:onProperty rdf:resource="http://localhost/default#Resourse"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> <rdfs:subClassOf> <owl:Restriction> <owl:onProperty rdf:resource="http://localhost/default#Name_Subject"/> <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#nonNegativeInteger">1</owl:cardinality> </owl:Restriction> </rdfs:subClassOf> </owl:Class></rdf:RDF>

Page 38: Tripletasv2

Diego Herrera 38

Subject Predicate Object

http://localhost/default#Subjects rdf: type http://www.w3.org/2002/07/owl#Class

genid:A10020 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Subjects owl: onProperty genid:A10020

genid:A10020 owl: onProperty http://localhost/default#type_subject

genid:A10020 owl: cardinality 1

genid:A10021 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Subjects rdf: subClassOf genid:A10021

07/2009

Elementos RDF

Tripletas RDF

Page 39: Tripletasv2

Diego Herrera 39

Subject Predicate Object

genid:A10021 owl: onProperty http://localhost/default#Resourse

genid:A10021 owl: cardinality 1

genid:A10022 rdf: type http://www.w3.org/2002/07/owl#Restriction

http://localhost/default#Subjects rdf: subClassOf genid:A10022

genid:A10022 owl: onProperty http://localhost/default#Name_Subject

genid:A10022 owl: cardinality 1

07/2009

Elementos RDF

Tripletas RDF

Page 40: Tripletasv2

Diego Herrera 40

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 41: Tripletasv2

Diego Herrera 41

INDIVIDUALS

07/2009

Page 42: Tripletasv2

4207/2009 Diego Herrera

Individual: Acer, DELL, Hewlett Packard

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"> <default:Laptops rdf:about="http://localhost/default#Acer" /> <default:Laptops rdf:about="http://localhost/default#DELL" /> <default:Servers rdf:about="http://localhost/default#Hewlett%20Packard"> <rdf:type rdf:resource="http://localhost/default#Laptops" /> </default:Servers></rdf:RDF>

Page 43: Tripletasv2

Diego Herrera 43

Subject Predicate Object

http://localhost/default#Acer rdf: type http://localhost/default#Laptops

http://localhost/default#DELL rdf: type http://localhost/default#Laptops

http://localhost/default#Hewlett%20Packard

rdf: type http://localhost/default#Servers

http://localhost/default#Hewlett%20Packard

rdf: type http://localhost/default#Laptops

07/2009

Elementos RDF

Tripletas RDF

Page 44: Tripletasv2

Diego Herrera 44

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 45: Tripletasv2

4507/2009 Diego Herrera

Individual: Linux, MAC, Windows Vista, Windows XP

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"> <default:OperatingSystem rdf:about="http://localhost/default#Linux" /> <default:OperatingSystem rdf:about="http://localhost/default#MAC" /> <default:OperatingSystem rdf:about="http://localhost/default#Linux" /> <default:OperatingSystem rdf:about="http://localhost/default#MAC" /> <default:OperatingSystem rdf:about="http://localhost/default#Windows%20Vista" /> <default:OperatingSystem rdf:about="http://localhost/default#Windows%20XP" /> </rdf:RDF>

Page 46: Tripletasv2

Diego Herrera 46

Subject Predicate Object

http://localhost/default#Linux rdf: type http://localhost/default#OperatingSystem

http://localhost/default#MAC rdf: type http://localhost/default#OperatingSystem

http://localhost/default#Linux rdf: type http://localhost/default#OperatingSystem

http://localhost/default#MAC rdf: typehttp://localhost/default#OperatingSystem

http://localhost/default#Windows%20Vista

rdf: type http://localhost/default#OperatingSystem

http://localhost/default#Windows%20XP

rdf: type http://localhost/default#OperatingSystem

07/2009

Elementos RDF

Tripletas RDF

Page 47: Tripletasv2

Diego Herrera 47

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 48: Tripletasv2

Diego Herrera 48

OBJECT PROPERTIES

07/2009

Page 49: Tripletasv2

4907/2009 Diego Herrera

Object Properties: IsPartOf

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"> <owl:ObjectProperty rdf:about="http://localhost/default#IsPartOf"> <rdfs:range rdf:resource="http://localhost/default#Computers" /> <rdfs:domain rdf:resource="http://localhost/default#Software" /> <owl:inverseOf rdf:resource="http://localhost/default#has" /> </owl:ObjectProperty></rdf:RDF>

Page 50: Tripletasv2

Diego Herrera 50

Subject Predicate Object

http://localhost/default#IsPartOf rdf: type owl: ObjectProperty

http://localhost/default#IsPartOf rdf: range http://localhost/default#Computers

http://localhost/default#IsPartOf rdf: domain http://localhost/default#Software

http://localhost/default#IsPartOf rdf: inverseOf http://localhost/default#has

07/2009

Elementos RDF

Tripletas RDF

Page 51: Tripletasv2

Diego Herrera 51

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 52: Tripletasv2

5207/2009 Diego Herrera

Object Properties: hasTypeOf

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:ObjectProperty rdf:about="http://localhost/default#hasTypeOf"> <rdfs:domain rdf:resource="http://localhost/default#Contabilidad" /> <rdfs:range rdf:resource="http://localhost/default#Subjects" /> </owl:ObjectProperty></rdf:RDF>

Page 53: Tripletasv2

Diego Herrera 53

Subject Predicate Object

http://localhost/default#hasTypeOf rdf: type owl: ObjectProperty

http://localhost/default#hasTypeOf rdf: domain http://localhost/default#Contabilidad

http://localhost/default#hasTypeOf rdf: range http://localhost/default#Subjects

07/2009

Elementos RDF

Tripletas RDF

Page 54: Tripletasv2

Diego Herrera 54

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 55: Tripletasv2

5507/2009 Diego Herrera

Object Properties: supportOf

Tripletas RDF

Código RDF

<<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:ObjectProperty rdf:about="http://localhost/default#SupportOf"> <rdfs:domain rdf:resource="http://localhost/default#Informatics" /> <rdfs:range rdf:resource="http://localhost/default#Tools" /> </owl:ObjectProperty></rdf:RDF>

Page 56: Tripletasv2

Diego Herrera 56

Subject Predicate Object

http://localhost/default#SupportOf rdf: type owl: ObjectProperty

http://localhost/default#SupportOf rdf: domain http://localhost/default#Informatics

http://localhost/default#SupportOf rdf: range http://localhost/default#Tools

07/2009

Elementos RDF

Tripletas RDF

Page 57: Tripletasv2

Diego Herrera 57

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 58: Tripletasv2

Diego Herrera 58

DATA

PROPERTIES

07/2009

Page 59: Tripletasv2

5907/2009 Diego Herrera

Data Properties: License

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:DatatypeProperty rdf:about="http://localhost/default#Licence"> <rdfs:domain rdf:resource="http://localhost/default#OperatingSystem" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty></rdf:RDF>

Page 60: Tripletasv2

Diego Herrera 60

Subject Predicate Object

http://localhost/default#Licence rdf: type owl: ObjectProperty

http://localhost/default#Licence rdf: domain http://localhost/default#OperatingSystem

http://localhost/default#Licence rdf: range rdf: string

07/2009

Elementos RDF

Tripletas RDF

Page 61: Tripletasv2

Diego Herrera 61

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 62: Tripletasv2

6207/2009 Diego Herrera

Data Properties: Model

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:DatatypeProperty rdf:about="http://localhost/default#Model"> <rdfs:domain rdf:resource="http://localhost/default#Laptops" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty></rdf:RDF>

Page 63: Tripletasv2

Diego Herrera 63

Subject Predicate Object

http://localhost/default#Model rdf: type owl: DatatypeProperty

http://localhost/default#Model rdf: domain http://localhost/default#Laptops

http://localhost/default#Model rdf: range rdf: string

07/2009

Elementos RDF

Tripletas RDF

Page 64: Tripletasv2

Diego Herrera 64

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 65: Tripletasv2

6507/2009 Diego Herrera

Data Properties: Patent

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:DatatypeProperty rdf:about="http://localhost/default#Patent"> <rdfs:domain rdf:resource="http://localhost/default#Laptops" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string" /> </owl:DatatypeProperty></rdf:RDF>

Page 66: Tripletasv2

Diego Herrera 66

Subject Predicate Object

http://localhost/default#Patent rdf: type owl: DatatypeProperty

http://localhost/default#Patent rdf: domain http://localhost/default#Laptops

http://localhost/default#Patent rdf: range rdf: string

07/2009

Elementos RDF

Tripletas RDF

Page 67: Tripletasv2

Diego Herrera 67

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 68: Tripletasv2

6807/2009 Diego Herrera

Data Properties: ProductNumber

Tripletas RDF

Código RDF

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:default="http://localhost/default#"><owl:DatatypeProperty rdf:about="http://localhost/default#ProductNumber"> <rdfs:domain rdf:resource="http://localhost/default#Laptops" /> <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#integer" /> </owl:DatatypeProperty></rdf:RDF>

Page 69: Tripletasv2

Diego Herrera 69

Subject Predicate Object

http://localhost/default#ProductNumber

rdf: type owl: DatatypeProperty

http://localhost/default#ProductNumber

rdf: domain http://localhost/default#Laptops

http://localhost/default#ProductNumber

rdf: range rdf: integer

07/2009

Elementos RDF

Tripletas RDF

Page 70: Tripletasv2

Diego Herrera 70

Gráfico del modelo de datos

07/2009

Tripletas RDF

Page 71: Tripletasv2

LOGO

Diego Herrera Galvá[email protected]

www.dvherrera.blogspot.com07/2009

UNIVERSIDAD TÉCNICA PARTICULAR DE LOJALa Universidad Católica

de Loja