Mentions légales du service

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

- updated to the new paths

parent 6d80afd4
No related branches found
No related tags found
No related merge requests found
...@@ -129,8 +129,8 @@ public class MyApp { ...@@ -129,8 +129,8 @@ public class MyApp {
Alignment al = null; Alignment al = null;
URI uri1 = null; URI uri1 = null;
URI uri2 = null; URI uri2 = null;
//String u1 = "http://alignapi.gforge.inria.fr/tutorial2/ontology1.owl"; //String u1 = "http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology1.owl";
//String u2 = "http://alignapi.gforge.inria.fr/tutorial2/ontology2.owl"; //String u2 = "http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology2.owl";
String u1 = "file:ontology1.owl"; String u1 = "file:ontology1.owl";
String u2 = "file:ontology2.owl"; String u2 = "file:ontology2.owl";
String method = "fr.inrialpes.exmo.align.impl.method.StringDistAlignment"; String method = "fr.inrialpes.exmo.align.impl.method.StringDistAlignment";
...@@ -251,7 +251,7 @@ public class MyApp { ...@@ -251,7 +251,7 @@ public class MyApp {
QueryExecution qe = null; QueryExecution qe = null;
try { try {
in = new FileInputStream( merged ); in = new FileInputStream( merged );
//in = new URL("http://alignapi.gforge.inria.fr/tutorial2/ontology1.owl").openStream(); //in = new URL("http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology1.owl").openStream();
//OntModelSpec.OWL_MEM_RDFS_INF or no arguments to see the difference... //OntModelSpec.OWL_MEM_RDFS_INF or no arguments to see the difference...
Model model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF,null); Model model = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM_RULE_INF,null);
model.read(in,"file:///tmp/myresult.owl"); model.read(in,"file:///tmp/myresult.owl");
...@@ -262,7 +262,7 @@ public class MyApp { ...@@ -262,7 +262,7 @@ public class MyApp {
String queryString = String queryString =
"PREFIX foaf: <http://xmlns.com/foaf/0.1/> " + "PREFIX foaf: <http://xmlns.com/foaf/0.1/> " +
"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> " + "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> " +
"PREFIX aa: <http://alignapi.gforge.inria.fr/tutorial2/ontology1.owl#> " + "PREFIX aa: <http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology1.owl#> " +
"SELECT ?fn ?ln ?t ?s " + "SELECT ?fn ?ln ?t ?s " +
//"SELECT ?fn ?ln " + //"SELECT ?fn ?ln " +
"WHERE {" + "WHERE {" +
...@@ -307,9 +307,9 @@ public class MyApp { ...@@ -307,9 +307,9 @@ public class MyApp {
} catch (OWLOntologyCreationException ooce) { ooce.printStackTrace(); } } catch (OWLOntologyCreationException ooce) { ooce.printStackTrace(); }
// get the instances of a class // get the instances of a class
OWLClass estud = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial2/ontology1.owl#Estudiante" ) ); OWLClass estud = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology1.owl#Estudiante" ) );
OWLClass person = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial2/ontology2.owl#Person" ) ); OWLClass person = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology2.owl#Person" ) );
OWLClass student = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial2/ontology2.owl#Student" ) ); OWLClass student = manager.getOWLDataFactory().getOWLClass( URI.create( "http://alignapi.gforge.inria.fr/tutorial/tutorial2/ontology2.owl#Student" ) );
Set instances = reasoner.getIndividuals( estud, false ); Set instances = reasoner.getIndividuals( estud, false );
System.err.println("Pellet(Merged): There are "+instances.size()+" students "+estud.getURI()); System.err.println("Pellet(Merged): There are "+instances.size()+" students "+estud.getURI());
......
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