From: <lor...@us...> - 2011-11-28 11:22:09
|
Revision: 3443 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=3443&view=rev Author: lorenz_b Date: 2011-11-28 11:22:01 +0000 (Mon, 28 Nov 2011) Log Message: ----------- Continued script. Modified Paths: -------------- trunk/scripts/src/main/java/org/dllearner/scripts/SPARQLSampleDebugging.java Modified: trunk/scripts/src/main/java/org/dllearner/scripts/SPARQLSampleDebugging.java =================================================================== --- trunk/scripts/src/main/java/org/dllearner/scripts/SPARQLSampleDebugging.java 2011-11-28 10:43:10 UTC (rev 3442) +++ trunk/scripts/src/main/java/org/dllearner/scripts/SPARQLSampleDebugging.java 2011-11-28 11:22:01 UTC (rev 3443) @@ -39,6 +39,7 @@ import org.ini4j.IniPreferences; import org.ini4j.InvalidFileFormatException; import org.semanticweb.owlapi.apibinding.OWLManager; +import org.semanticweb.owlapi.io.RDFXMLOntologyFormat; import org.semanticweb.owlapi.model.AxiomType; import org.semanticweb.owlapi.model.IRI; import org.semanticweb.owlapi.model.OWLAxiom; @@ -48,6 +49,7 @@ import org.semanticweb.owlapi.model.OWLObjectProperty; import org.semanticweb.owlapi.model.OWLOntology; import org.semanticweb.owlapi.model.OWLOntologyCreationException; +import org.semanticweb.owlapi.model.OWLOntologyFormat; import org.semanticweb.owlapi.model.OWLOntologyManager; import org.semanticweb.owlapi.model.OWLOntologyStorageException; import org.semanticweb.owlapi.reasoner.InferenceType; @@ -72,9 +74,9 @@ private SparqlEndpoint endpoint; private ExtractionDBCache cache = new ExtractionDBCache("cache"); - private int sampleSize = 100; + private int sampleSize = 10; private int depth = 4; - private int nrOfChunks = 100; + private int nrOfChunks = 1; private int maxNrOfExplanations = 20; private Logger logger = Logger.getLogger(SPARQLSampleDebugging.class); @@ -265,7 +267,7 @@ try { OWLOntologyManager man = OWLManager.createOWLOntologyManager(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); - man.saveOntology(ontology, baos); + man.saveOntology(ontology, new RDFXMLOntologyFormat(), baos); bais = new ByteArrayInputStream(baos.toByteArray()); model.read(bais, null); } catch (OWLOntologyStorageException e) { @@ -476,7 +478,7 @@ SparqlEndpoint endpoint = new SparqlEndpoint(new URL("http://dbpedia.aksw.org:8902/sparql"), Collections.singletonList("http://dbpedia.org"), Collections.<String>emptyList()); - new SPARQLSampleDebugging(endpoint).runPatternBasedDetection(); +// new SPARQLSampleDebugging(endpoint).runPatternBasedDetection(); new SPARQLSampleDebugging(endpoint).run3(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |