Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9aa3a6b3 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- improvement in tutorial4

parent 21d80e6d
No related branches found
No related tags found
No related merge requests found
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<rdf:RDF xmlns='http://knowledgeweb.semanticweb.org/heterogeneity/alignment#'
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
xmlns:xsd='http://www.w3.org/2001/XMLSchema#'
xmlns:alext='http://exmo.inrialpes.fr/align/ext/1.0/'
xmlns:align='http://knowledgeweb.semanticweb.org/heterogeneity/alignment#'>
<Alignment>
<xml>yes</xml>
<level>0</level>
<type>11</type>
<alext:method>Manually made alignment</alext:method>
<alext:time>53</alext:time>
<onto1>
<Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl">
<location>http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl</location>
<formalism>
<Formalism align:name="OWL2.0" align:uri="http://www.w3.org/2002/07/owl#"/>
</formalism>
</Ontology>
</onto1>
<onto2>
<Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl">
<location>http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl</location>
<formalism>
<Formalism align:name="OWL2.0" align:uri="http://www.w3.org/2002/07/owl#"/>
</formalism>
</Ontology>
</onto2>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#Estudiante'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#Student'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#Tutor'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#Professor'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#lastname'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#name'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#firstname'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#first-name'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#gender'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#gender'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#affiliation'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#institution'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#city'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#city-of-study'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#country'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#country-of-study'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#year'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#year-in-phd'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#topic'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#topics-of-interest'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
<map>
<Cell>
<entity1 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#supervisor'/>
<entity2 rdf:resource='http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#phd-advisor'/>
<relation>=</relation>
<measure rdf:datatype='http://www.w3.org/2001/XMLSchema#float'>1.0</measure>
</Cell>
</map>
</Alignment>
</rdf:RDF>
...@@ -5,40 +5,92 @@ ...@@ -5,40 +5,92 @@
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY dc "http://purl.org/dc/elements/1.1/" > <!ENTITY dc "http://purl.org/dc/elements/1.1/" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY owl "http://www.w3.org/2002/07/owl#" > ]>
<!ENTITY units "http://visus.mit.edu/fontomri/0.01/units.owl#" >
<!ENTITY bibtex "http://purl.org/net/nknouf/ns/bibtex#">
<!ENTITY dcterms "http://purl.org/dc/terms/">
<!ENTITY dctype "http://purl.org/dc/dcmitype/"> ]>
<rdf:RDF <rdf:RDF
xmlns="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#" xmlns="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#"
xml:base="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#" xml:base="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#"
xmlns:units ="&units;"
xmlns:foaf ="http://xmlns.com/foaf/0.1/"
xmlns:rdf ="&rdf;" xmlns:rdf ="&rdf;"
xmlns:xsd ="&xsd;" xmlns:xsd ="&xsd;"
xmlns:rdfs ="&rdfs;" xmlns:rdfs ="&rdfs;"
xmlns:owl ="http://www.w3.org/2002/07/owl#" xmlns:owl ="&owl;"
xmlns:wot ="http://xmlns.com/wot/0.1/" xmlns:dc ="&dc;">
xmlns:dc ="&dc;"
xmlns:dcterms ="&dcterms;"
xmlns:dctype ="&dctype;"
xmlns:bibtex ="&bibtex;">
<owl:Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl"> <owl:Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl">
<dc:creator>Jérôme Euzenat</dc:creator> <dc:creator>Jérôme Euzenat</dc:creator>
<dc:description>Example for Alignment API advanced turorial</dc:description> <dc:description>Example for Alignment API advanced turorial</dc:description>
<dc:date>2009-07-06</dc:date> <dc:date>2009-07-06</dc:date>
<rdfs:label>First ontology</rdfs:label> <rdfs:label>First ontology</rdfs:label>
<dc:title>ontology1.owl: an fake list of students</dc:title> <dc:title>ontology1.owl: a fake list of students</dc:title>
<dc:identifier rdf:datatype="&xsd;anyURI">http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl</dc:identifier> <dc:identifier rdf:datatype="&xsd;anyURI">http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl</dc:identifier>
</owl:Ontology> </owl:Ontology>
<owl:Class rdf:ID="Participante">
<rdfs:label xml:lang="es">Participante</rdfs:label>
</owl:Class>
<owl:Class rdf:ID="Estudiante"> <owl:Class rdf:ID="Estudiante">
<rdfs:label xml:lang="en">Estudiante</rdfs:label> <rdfs:subClassOf rdf:resource="#Participante" />
<rdfs:label xml:lang="es">Estudiante</rdfs:label>
</owl:Class>
<owl:Class rdf:ID="Tutor">
<rdfs:subClassOf rdf:resource="#Participante" />
<rdfs:label xml:lang="es">Professor</rdfs:label>
</owl:Class> </owl:Class>
<owl:DataProperty rdf:about="#lastname">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
<rdfs:label xml:lang="es">appelido</rdfs:label>
</owl:DataProperty>
<owl:DataProperty rdf:about="#firstname">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
<rdfs:label xml:lang="es">nombre</rdfs:label>
</owl:DataProperty>
<owl:DataProperty rdf:about="#gender">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#affiliation">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#city">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#country">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#year">
<rdf:domain rdf:resource="#Estudiante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#topic">
<rdf:domain rdf:resource="#Participante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#supervisor">
<rdf:domain rdf:resource="#Estudiante" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<Estudiante rdf:about="#Fitzgerald"> <Estudiante rdf:about="#Fitzgerald">
<lastname>Fitzgerald</lastname> <lastname>Fitzgerald</lastname>
<firstname>Ella</firstname> <firstname>Ella</firstname>
...@@ -253,6 +305,7 @@ ...@@ -253,6 +305,7 @@
</Estudiante> </Estudiante>
<Estudiante rdf:about="#Zorn"> <Estudiante rdf:about="#Zorn">
<rdf:type resource="#Tutor" />
<lastname>Zorn</lastname> <lastname>Zorn</lastname>
<firstname>John</firstname> <firstname>John</firstname>
<gender>Male</gender> <gender>Male</gender>
......
...@@ -5,30 +5,16 @@ ...@@ -5,30 +5,16 @@
<!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" >
<!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" >
<!ENTITY dc "http://purl.org/dc/elements/1.1/" > <!ENTITY dc "http://purl.org/dc/elements/1.1/" >
<!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY owl "http://www.w3.org/2002/07/owl#" > ]>
<!ENTITY units "http://visus.mit.edu/fontomri/0.01/units.owl#" >
<!ENTITY bibtex "http://purl.org/net/nknouf/ns/bibtex#">
<!ENTITY dcterms "http://purl.org/dc/terms/">
<!ENTITY dctype "http://purl.org/dc/dcmitype/"> ]>
<!--
xmlns="http://xmlns.com/foaf/0.1/#"
xml:base="http://xmlns.com/foaf/0.1/#"
-->
<rdf:RDF <rdf:RDF
xmlns="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#" xmlns="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#"
xml:base="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#" xml:base="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl#"
xmlns:units ="&units;"
xmlns:foaf ="http://xmlns.com/foaf/0.1/"
xmlns:rdf ="&rdf;" xmlns:rdf ="&rdf;"
xmlns:xsd ="&xsd;" xmlns:xsd ="&xsd;"
xmlns:rdfs ="&rdfs;" xmlns:rdfs ="&rdfs;"
xmlns:owl ="http://www.w3.org/2002/07/owl#" xmlns:owl ="&owl;"
xmlns:wot ="http://xmlns.com/wot/0.1/" xmlns:dc ="&dc;">
xmlns:dc ="&dc;"
xmlns:dcterms ="&dcterms;"
xmlns:dctype ="&dctype;"
xmlns:bibtex ="&bibtex;">
<owl:Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl"> <owl:Ontology rdf:about="http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology2.owl">
<dc:creator>Jérôme Euzenat</dc:creator> <dc:creator>Jérôme Euzenat</dc:creator>
...@@ -40,9 +26,61 @@ ...@@ -40,9 +26,61 @@
</owl:Ontology> </owl:Ontology>
<owl:Class rdf:ID="Student"> <owl:Class rdf:ID="Student">
<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdfs:label xml:lang="en">Student</rdfs:label> <rdfs:label xml:lang="en">Student</rdfs:label>
</owl:Class> </owl:Class>
<owl:Class rdf:ID="Professor">
<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<owl:disjointFrom rdf:resource="#Student" />
<rdfs:label xml:lang="en">Staff</rdfs:label>
</owl:Class>
<owl:DataProperty rdf:about="#name">
<rdf:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#first-name">
<rdf:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#gender">
<rdf:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#institution">
<rdf:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#city-of-study">
<rdf:domain rdf:resource="#Student" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#country-of-study">
<rdf:domain rdf:resource="#Student" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#year-in-phd">
<rdf:domain rdf:resource="#Student" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#topic-of-interest">
<rdf:domain rdf:resource="http://xmlns.com/foaf/0.1/Person" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<owl:DataProperty rdf:about="#phd-advisor">
<rdf:domain rdf:resource="#Student" />
<rdf:range rdf:resource="&xsd;string" />
</owl:DataProperty>
<Student rdf:about="#dkral"> <Student rdf:about="#dkral">
<name>Krall</name> <name>Krall</name>
<first-name>Diana</first-name> <first-name>Diana</first-name>
......
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX aa: <http://alignapi.gforge.inria.fr/tutorial/tutorial4/ontology1.owl#>
SELECT ?fn ?ln ?t ?s
WHERE {
?student rdf:type aa:Estudiante .
?student aa:firstname ?fn.
?student aa:lastname ?ln.
OPTIONAL { ?student aa:affiliation ?t . }
OPTIONAL { ?student aa:supervisor ?s . }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment