private static Statement createStatement(ClassAssertion assertion) { return fact.createStatement(getResource(assertion.getIndividual()), RDF.TYPE, createURI(assertion.getConcept().getIRI().getIRIString())); } }
IRI iri = ca.getConcept().getIRI(); Integer counter = failures.get(iri); if (counter == null)
public OWLIndividualAxiom translate(ClassAssertion ca) { IRI conceptIRI = IRI.create(ca.getConcept().getName()); OWLClass description = dataFactory.getOWLClass(conceptIRI); OWLIndividual object = translate(ca.getIndividual()); return dataFactory.getOWLClassAssertionAxiom(description, object); }
private static Statement createStatement(ClassAssertion assertion) { return fact.createStatement(getResource(assertion.getIndividual()), createURI(IriConstants.RDF_TYPE), createURI(assertion.getConcept().getPredicate().getName())); } }
private void process(Connection conn, ClassAssertion ax, PreparedStatement uriidStm, Map<SemanticIndexViewID, PreparedStatement> stmMap) throws SQLException { // replace concept by the canonical representative (which must be a concept name) OClass concept0 = ax.getConcept(); OClass concept = (OClass)reasonerDag.classesDAG().getCanonicalForm(concept0); int conceptIndex = cacheSI.getEntry(concept).getIndex(); ObjectConstant c1 = ax.getIndividual(); SemanticIndexView view = views.getView(c1.getType()); PreparedStatement stm = stmMap.get(view.getId()); if (stm == null) { stm = conn.prepareStatement(view.getINSERT()); stmMap.put(view.getId(), stm); } int uri_id = getObjectConstantUriId(c1, uriidStm); // Construct the database INSERT statements stm.setInt(1, uri_id); stm.setInt(2, conceptIndex); stm.addBatch(); // Register non emptiness view.addIndex(conceptIndex); }
for (ClassAssertion ca : cas) { IRIConstant c = (IRIConstant) ca.getIndividual(); IRI classIRI = ca.getConcept().getIRI(); Function head = atomFactory.getMutableTripleHeadAtom( immutabilityTools.convertToMutableFunction(
for (ClassAssertion ca : cas) { URIConstant c = (URIConstant) ca.getIndividual(); Function head = TERM_FACTORY.getFunction(ca.getConcept().getPredicate(), uriTemplateMatcher.generateURIFunction(c.getURI())); CQIE rule = DATALOG_FACTORY.getCQIE(head, Collections.emptyList());