Created
May 5, 2015 09:42
-
-
Save labra/fe68665381ec2d7df5de to your computer and use it in GitHub Desktop.
Ontología OWL de ejemplo de personas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@prefix : <http://www.ejemplo.org/curso#> . | |
@prefix owl: <http://www.w3.org/2002/07/owl#> . | |
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . | |
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
@base <http://www.ejemplo.org/curso> . | |
<http://www.ejemplo.org/curso> rdf:type owl:Ontology ; | |
rdfs:comment "Mi primer ontología"@es . | |
################################################################# | |
# | |
# Object Properties | |
# | |
################################################################# | |
### http://www.ejemplo.org/curso#daClaseDe | |
:daClaseDe rdf:type owl:ObjectProperty ; | |
rdfs:range :Asignatura ; | |
rdfs:domain :Profesor . | |
### http://www.ejemplo.org/curso#estaMatriculadoEn | |
:estaMatriculadoEn rdf:type owl:ObjectProperty ; | |
rdfs:domain :Alumno ; | |
rdfs:range :Asignatura . | |
### http://www.ejemplo.org/curso#tieneHijo | |
:tieneHijo rdf:type owl:ObjectProperty ; | |
rdfs:range :Persona ; | |
rdfs:domain :Persona . | |
################################################################# | |
# | |
# Data properties | |
# | |
################################################################# | |
### http://www.ejemplo.org/curso#apellidos | |
:apellidos rdf:type owl:DatatypeProperty ; | |
rdfs:subPropertyOf owl:topDataProperty . | |
### http://www.ejemplo.org/curso#edad | |
:edad rdf:type owl:DatatypeProperty ; | |
rdfs:domain :Persona ; | |
rdfs:range xsd:integer . | |
### http://www.ejemplo.org/curso#nombre | |
:nombre rdf:type owl:DatatypeProperty ; | |
rdfs:range xsd:string . | |
################################################################# | |
# | |
# Classes | |
# | |
################################################################# | |
### http://www.ejemplo.org/curso#Alumno | |
:Alumno rdf:type owl:Class ; | |
rdfs:subClassOf :Persona . | |
### http://www.ejemplo.org/curso#Asignatura | |
:Asignatura rdf:type owl:Class . | |
### http://www.ejemplo.org/curso#Persona | |
:Persona rdf:type owl:Class . | |
### http://www.ejemplo.org/curso#Profesor | |
:Profesor rdf:type owl:Class ; | |
rdfs:subClassOf :Persona . | |
################################################################# | |
# | |
# Individuals | |
# | |
################################################################# | |
### http://www.ejemplo.org/curso#algebra | |
:algebra rdf:type :Asignatura , | |
owl:NamedIndividual . | |
### http://www.ejemplo.org/curso#ana | |
:ana rdf:type owl:NamedIndividual , | |
owl:Thing . | |
### http://www.ejemplo.org/curso#dani | |
:dani rdf:type :Profesor , | |
owl:NamedIndividual ; | |
:edad 30 ; | |
:daClaseDe :logica . | |
### http://www.ejemplo.org/curso#federico | |
:federico rdf:type :Persona , | |
owl:NamedIndividual . | |
### http://www.ejemplo.org/curso#juan | |
:juan rdf:type owl:NamedIndividual , | |
owl:Thing ; | |
:daClaseDe :logica . | |
### http://www.ejemplo.org/curso#labra | |
:labra rdf:type :Profesor , | |
owl:NamedIndividual ; | |
:edad 38 ; | |
:nombre "Jose Emilio"^^xsd:string ; | |
:apellidos "Labra Gayo"^^xsd:string ; | |
:daClaseDe :logica . | |
### http://www.ejemplo.org/curso#logica | |
:logica rdf:type owl:NamedIndividual , | |
owl:Thing . | |
### http://www.ejemplo.org/curso#miguel | |
:miguel rdf:type :Alumno , | |
owl:NamedIndividual ; | |
:edad 23 ; | |
:estaMatriculadoEn :logica . | |
### http://www.ejemplo.org/curso#programacion | |
:programacion rdf:type :Asignatura , | |
owl:NamedIndividual . | |
### http://www.ejemplo.org/curso#ruben | |
:ruben rdf:type :Alumno , | |
owl:NamedIndividual ; | |
:edad 24 ; | |
:estaMatriculadoEn :logica . | |
### Generated by the OWL API (version 3.5.1) http://owlapi.sourceforge.net | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment