@Override protected RDFResourceIRI getResourceNode(@Nonnull IRI iri) { return new RDFResourceIRI(iri); } }
@Override protected RDFResourceIRI getResourceNode(@Nonnull IRI iri) { return new RDFResourceIRI(iri); } }
@Override protected RDFResourceIRI getResourceNode(@Nonnull IRI iri) { return new RDFResourceIRI(iri); } }
@Nonnull @Override protected RDFResource getResourceNode(@Nonnull IRI iri) { return new RDFResourceIRI(iri); }
private static RDFResource getResource(IRI iri, boolean anon, boolean axiom) { if (anon) { return new RDFResourceBlankNode(iri, true, true, axiom); } return new RDFResourceIRI(iri); }
private void addImportsDeclarationsToOntologyHeader(RDFResource ontologyHeaderNode) { for (OWLImportsDeclaration decl : ontology.getImportsDeclarations()) { graph.addTriple(new RDFTriple(ontologyHeaderNode, new RDFResourceIRI(OWL_IMPORTS.getIRI()), new RDFResourceIRI(decl.getIRI()))); } }
private void addVersionIRIToOntologyHeader(RDFResource ontologyHeaderNode) { OWLOntologyID ontID = ontology.getOntologyID(); if (ontID.getVersionIRI() != null) { graph.addTriple(new RDFTriple(ontologyHeaderNode, new RDFResourceIRI(OWL_VERSION_IRI.getIRI()), new RDFResourceIRI(ontID.getVersionIRI()))); } }
private RDFTriple getRDFTriple(IRI subject, IRI predicate, IRI object) { return new RDFTriple(getRDFResource(subject), new RDFResourceIRI(predicate), getRDFResource(object)); }
/** * @param subject the subject * @param subjectAnon whether the subject is anonymous * @param axiom true if axiom * @param predicate the predicate * @param object the object */ public RDFTriple(IRI subject, boolean subjectAnon, boolean axiom, IRI predicate, OWLLiteral object) { this(getResource(subject, subjectAnon, axiom), new RDFResourceIRI(predicate), new RDFLiteral(object)); }
/** * @param subject the subject * @param subjectAnon whether the subject is anonymous * @param axiom true if axiom * @param predicate the predicate * @param object the object */ public RDFTriple(IRI subject, boolean subjectAnon, boolean axiom, IRI predicate, OWLLiteral object) { this(getResource(subject, subjectAnon, axiom), new RDFResourceIRI(predicate), new RDFLiteral(object)); }
/** * @param subject the subject * @param subjectAnon whether the subject is anonymous * @param axiom true if axiom * @param predicate the predicate * @param object the object */ public RDFTriple(IRI subject, boolean subjectAnon, boolean axiom, IRI predicate, OWLLiteral object) { this(getResource(subject, subjectAnon, axiom), new RDFResourceIRI(predicate), new RDFLiteral(object)); }
private RDFResource getRDFResource(IRI iri) { if (isAnonymousNode(iri)) { return new RDFResourceBlankNode(iri, false, false, isAxiomIRI(iri)); } return new RDFResourceIRI(iri); }
private RDFResource getRDFResource(IRI iri) { if (isAnonymousNode(iri)) { return new RDFResourceBlankNode(iri, false, false, isAxiomIRI(iri)); } return new RDFResourceIRI(iri); }
private RDFResource getRDFResource(IRI iri) { if (isAnonymousNode(iri)) { return new RDFResourceBlankNode(iri, false, false, isAxiomIRI(iri)); } return new RDFResourceIRI(iri); }
private void renderSWRLRules() { List<SWRLRule> ruleAxioms = asList(ontology.axioms(SWRL_RULE).sorted()); createGraph(ruleAxioms.stream()); if (!ruleAxioms.isEmpty()) { writeBanner(RULES_BANNER_TEXT); SWRLVariableExtractor variableExtractor = new SWRLVariableExtractor(); ruleAxioms.forEach(rule -> rule.accept(variableExtractor)); variableExtractor.getVariables() .forEach(var -> render(new RDFResourceIRI(var.getIRI()), true)); renderAnonRoots(); } }
private void renderEntity(OWLEntity entity) { beginObject(); writeEntityComment(entity); render(new RDFResourceIRI(entity.getIRI()), true); renderAnonRoots(); endObject(); }
protected void renderIRI(IRI iri) { beginObject(); createGraph(ontology.annotationAssertionAxioms(iri)); render(new RDFResourceIRI(iri), true); renderAnonRoots(); endObject(); }
private void renderEntity(OWLEntity entity) { beginObject(); writeEntityComment(entity); render(new RDFResourceIRI(entity.getIRI()), true); renderAnonRoots(); endObject(); }
protected void renderIRI(IRI iri) { beginObject(); createGraph(ontology.annotationAssertionAxioms(iri)); render(new RDFResourceIRI(iri), true); renderAnonRoots(); endObject(); }
private void renderEntity(OWLEntity entity) { beginObject(); writeEntityComment(entity); render(new RDFResourceIRI(entity.getIRI()), true); renderAnonRoots(); endObject(); }