public Enrichment(SparqlEndpoint se, OWLEntity resource, double threshold, int nrOfAxiomsToLearn, boolean useInference, boolean verbose, int chunksize, int maxExecutionTimeInSeconds, boolean omitExistingAxioms) { this(new SparqlEndpointKS(se), resource, threshold, nrOfAxiomsToLearn, useInference, verbose, chunksize, maxExecutionTimeInSeconds, omitExistingAxioms); }
public SPARQLReasoner(SparqlEndpointKS ks) { super(ks); this.qef = ks.getQueryExecutionFactory(); }
public void setSparql(String sparql) { setSparql(sparql, true); }
@Override public Model call() throws Exception { ConciseBoundedDescriptionGenerator cbdGen = new ConciseBoundedDescriptionGeneratorImpl(ks.getQueryExecutionFactory()); return cbdGen.getConciseBoundedDescription(ind.toStringID(), 2); } }));
public IndividualBasedFragmentExtractor(SparqlEndpointKS ks, int maxNrOfIndividuals) { this.maxNrOfIndividuals = maxNrOfIndividuals; cbdGen = new ConciseBoundedDescriptionGeneratorImpl(ks.getQueryExecutionFactory()); }
public static void main(String[] args) throws Exception{ SparqlEndpoint endpoint = SparqlEndpoint.create("http://sake.informatik.uni-leipzig.de:8890/sparql", "http://biomedical.org"); SparqlEndpointKS ks = new SparqlEndpointKS(endpoint); ks.init(); new PredicateExistenceFilterBiomedical().analyze(ks); }
public SimpleRankingComputation(Knowledgebase knowledgebase) { super(knowledgebase); if(knowledgebase instanceof RemoteKnowledgebase) {reasoner = new SPARQLReasoner(new SparqlEndpointKS(((RemoteKnowledgebase)knowledgebase).getEndpoint()));} else {reasoner = new SPARQLReasoner(new LocalModelBasedSparqlEndpointKS(((LocalKnowledgebase)knowledgebase).getModel()));} // metrics = new SPARQLEndpointMetrics(((RemoteKnowledgebase) knowledgebase).getEndpoint(), new ExtractionDBCache("/opt/tbsl/dbpedia_pmi_cache_v2")); }
public SPARQLEndpointMetrics(SparqlEndpoint endpoint, ExtractionDBCache cache) { this.endpoint = endpoint; this.cache = cache; cache.setFreshnessInMilliseconds(Long.MAX_VALUE);//31536000000l); cache.setMaxExecutionTimeInSeconds(300); this.reasoner = new SPARQLReasoner(new SparqlEndpointKS(endpoint), cache); }
@Override public void init() throws ComponentInitException { if(ks.isRemote()){ ksQef = ks.getQueryExecutionFactory(); } else { ksQef = new QueryExecutionFactoryModel(((LocalModelBasedSparqlEndpointKS)ks).getModel()); } if(ksReasoner == null){ ksReasoner = new SPARQLReasoner(ksQef); } // ksReasoner.supportsSPARQL1_1(); reasoner = ksReasoner; initialized = true; }
@Test public void testMethods() throws Exception { OWLOntology ontology = createOntology(); assertNotNull(ontology); OWLAPIOntology testSubject = new OWLAPIOntology(ontology); OWLOntology result = testSubject.createOWLOntology(OWLManager.createOWLOntologyManager()); assertNotNull(result); assertNotSame(ontology,result); // Basic Equality Check - for some reason axiom count is different - the result looks more complete than the original. assertEquals(ontology.getIndividualsInSignature().size(), result.getIndividualsInSignature().size()); } }
public OWLAPIReasoner(OWLReasoner reasoner) { this.reasoner = reasoner; KnowledgeSource ks = new OWLAPIOntology(reasoner.getRootOntology()); sources = Collections.singleton(ks); }
public AnnotationEntityTextRetriever(OWLAPIOntology ontology, OWLAnnotationProperty... properties) { this.ontology = ontology.createOWLOntology(manager); }
public void setReasoning(boolean reasoning) { this.setReasoning(reasoning ? "rdfs" : ""); }
public SPARQLEndpointMetrics(Knowledgebase knowledgebase, ExtractionDBCache cache) { this.endpoint = ((RemoteKnowledgebase)knowledgebase).getEndpoint(); this.cache = cache; cache.setFreshnessInMilliseconds(Long.MAX_VALUE);//31536000000l); cache.setMaxExecutionTimeInSeconds(300); this.reasoner = new SPARQLReasoner(new SparqlEndpointKS(endpoint), cache); }
public MultiPropertyAxiomLearner(SparqlEndpointKS ks) { this(ks.getQueryExecutionFactory()); this.ks = ks; }
public void changeSourcesOntology(OWLOntology ontology) { sourcesOntology = ontology; learningProblem.getReasoner().changeSources(Collections.singleton((KnowledgeSource) new OWLAPIOntology(ontology))); // learningProblem.getReasoner().changeSources(Collections.singleton((KnowledgeSource) ontology)); }
public AbstractSampleGenerator(SparqlEndpointKS ks) { this(ks.getQueryExecutionFactory()); }
public QTL2DisjunctiveMultiThreaded(PosNegLP lp, SparqlEndpointKS ks) { this(lp, ks.getQueryExecutionFactory()); }
public QTL2Disjunctive(PosNegLP lp, SparqlEndpointKS ks) { this(lp, ks.getQueryExecutionFactory()); }
public TimeBasedFragmentExtractor(SparqlEndpointKS ks, int maxExecutionTimeInMilliseconds, TimeUnit timeUnit) { this.ks = ks; this.maxExecutionTimeInMilliseconds = timeUnit.toMillis(maxExecutionTimeInMilliseconds); qef = ks.getQueryExecutionFactory(); }