Package n10s.onto

Class OntologyImporter

All Implemented Interfaces:
org.eclipse.rdf4j.rio.RDFHandler
Direct Known Subclasses:
OntologyPreviewer

public class OntologyImporter extends RDFToLPGStatementProcessor
  • Field Details

    • SUB_CLASS_REST

      protected static final int SUB_CLASS_REST
      See Also:
    • EQUIV_CLASS_REST

      protected static final int EQUIV_CLASS_REST
      See Also:
    • RESOURCE

      public static final org.neo4j.graphdb.Label RESOURCE
    • ANNOTATION_PROPERTIES_TO_IMPORT

      protected static final List<org.eclipse.rdf4j.model.IRI> ANNOTATION_PROPERTIES_TO_IMPORT
    • PROPERTY_DECORATIONS_TO_IMPORT

      protected static final List<org.eclipse.rdf4j.model.IRI> PROPERTY_DECORATIONS_TO_IMPORT
    • extraStatements

      protected Set<org.eclipse.rdf4j.model.Statement> extraStatements
    • allOpenRestrictions

      protected Map<org.eclipse.rdf4j.model.BNode,OWLRestriction> allOpenRestrictions
    • openSubClassRestrictions

      protected Map<org.eclipse.rdf4j.model.IRI,List<OWLRestriction>> openSubClassRestrictions
    • openEquivRestrictions

      protected Map<org.eclipse.rdf4j.model.IRI,List<OWLRestriction>> openEquivRestrictions
  • Constructor Details

    • OntologyImporter

      public OntologyImporter(org.neo4j.graphdb.GraphDatabaseService db, org.neo4j.graphdb.Transaction tx, RDFParserConfig conf, org.neo4j.logging.Log l)
  • Method Details

    • periodicOperation

      protected void periodicOperation()
      Specified by:
      periodicOperation in class RDFToLPGStatementProcessor
    • startRDF

      public void startRDF() throws org.eclipse.rdf4j.rio.RDFHandlerException
      Specified by:
      startRDF in interface org.eclipse.rdf4j.rio.RDFHandler
      Overrides:
      startRDF in class RDFToLPGStatementProcessor
      Throws:
      org.eclipse.rdf4j.rio.RDFHandlerException
    • endRDF

      public void endRDF() throws org.eclipse.rdf4j.rio.RDFHandlerException
      Throws:
      org.eclipse.rdf4j.rio.RDFHandlerException
    • handleStatement

      public void handleStatement(org.eclipse.rdf4j.model.Statement st)
      Specified by:
      handleStatement in interface org.eclipse.rdf4j.rio.RDFHandler
      Overrides:
      handleStatement in class RDFToLPGStatementProcessor
    • runPartialTx

      public Integer runPartialTx(org.neo4j.graphdb.Transaction inThreadTransaction)
    • getRestrictionRelName

      protected String getRestrictionRelName(int type)
    • getTypeAsString

      protected String getTypeAsString(OWLRestriction rest)
    • translateRelName

      protected org.eclipse.rdf4j.model.IRI translateRelName(org.eclipse.rdf4j.model.IRI iri)