public class VertexiumOntologyRepository extends OntologyRepositoryBase
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.cache.Cache<String,List<OntologyProperty>> |
allPropertiesCache |
static String |
ID_PREFIX |
static String |
ID_PREFIX_CONCEPT |
static String |
ID_PREFIX_PROPERTY |
static String |
ID_PREFIX_RELATIONSHIP |
BASE_OWL_IRI, COMMENT_OWL_IRI, RESOURCE_ENTITY_PNGCONFIG_INTENT_CONCEPT_PREFIX, CONFIG_INTENT_PROPERTY_PREFIX, CONFIG_INTENT_RELATIONSHIP_PREFIX, ENTITY_CONCEPT_IRI, ROOT_CONCEPT_IRI, TYPE_CONCEPT, TYPE_PROPERTY, TYPE_RELATIONSHIP, VISIBILITY, VISIBILITY_STRING| Constructor and Description |
|---|
VertexiumOntologyRepository(org.vertexium.Graph graph,
Configuration config,
GraphAuthorizationRepository graphAuthorizationRepository,
LockRepository lockRepository) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEntityGlyphIconToEntityConcept(Concept entityConcept,
byte[] rawImg) |
OntologyProperty |
addPropertyTo(List<Concept> concepts,
List<Relationship> relationships,
String propertyIri,
String displayName,
org.visallo.web.clientapi.model.PropertyType dataType,
Map<String,String> possibleValues,
Collection<org.vertexium.TextIndexHint> textIndexHints,
boolean userVisible,
boolean searchable,
boolean addable,
boolean sortable,
String displayType,
String propertyGroup,
Double boost,
String validationFormula,
String displayFormula,
com.google.common.collect.ImmutableList<String> dependentPropertyIris,
String[] intents,
boolean deleteable,
boolean updateable) |
void |
clearCache() |
protected Concept |
createConcept(org.vertexium.Vertex vertex)
Overridable so subclasses can supply a custom implementation of Concept.
|
protected Concept |
createConcept(org.vertexium.Vertex vertex,
List<OntologyProperty> conceptProperties,
String parentConceptIRI)
Overridable so subclasses can supply a custom implementation of Concept.
|
protected OntologyProperty |
createOntologyProperty(org.vertexium.Vertex propertyVertex,
com.google.common.collect.ImmutableList<String> dependentPropertyIris)
Overridable so subclasses can supply a custom implementation of OntologyProperty.
|
protected Relationship |
createRelationship(String parentIRI,
org.vertexium.Vertex relationshipVertex,
List<String> inverseOfIRIs,
List<String> domainConceptIris,
List<String> rangeConceptIris,
Collection<OntologyProperty> properties)
Overridable so subclasses can supply a custom implementation of Relationship.
|
protected void |
findOrAddEdge(org.vertexium.Vertex fromVertex,
org.vertexium.Vertex toVertex,
String edgeLabel) |
protected org.vertexium.Authorizations |
getAuthorizations() |
protected List<Concept> |
getChildConcepts(Concept concept) |
protected List<Relationship> |
getChildRelationships(Relationship relationship) |
org.visallo.web.clientapi.model.ClientApiOntology |
getClientApiObject() |
Iterable<Concept> |
getConceptsWithProperties() |
protected com.google.common.collect.ImmutableList<String> |
getDependentPropertyIris(org.vertexium.Vertex vertex) |
String |
getDisplayNameForLabel(String relationshipIRI) |
Concept |
getEntityConcept() |
protected org.vertexium.Graph |
getGraph() |
Concept |
getOrCreateConcept(Concept parent,
String conceptIRI,
String displayName,
File inDir) |
Concept |
getOrCreateConcept(Concept parent,
String conceptIRI,
String displayName,
File inDir,
boolean isDeclaredInOntology) |
protected void |
getOrCreateInverseOfRelationship(Relationship fromRelationship,
Relationship inverseOfRelationship) |
Relationship |
getOrCreateRelationshipType(Relationship parent,
Iterable<Concept> domainConcepts,
Iterable<Concept> rangeConcepts,
String relationshipIRI) |
Concept |
getParentConcept(Concept concept) |
Iterable<OntologyProperty> |
getProperties() |
Iterable<Relationship> |
getRelationships() |
boolean |
hasRelationshipByIRI(String relationshipIRI) |
protected void |
importOntologyAnnotationProperty(org.semanticweb.owlapi.model.OWLOntology o,
org.semanticweb.owlapi.model.OWLAnnotationProperty annotationProperty,
File inDir,
org.vertexium.Authorizations authorizations) |
boolean |
isOntologyDefined(String iri) |
List<org.semanticweb.owlapi.model.OWLOntology> |
loadOntologyFiles(org.semanticweb.owlapi.model.OWLOntologyManager m,
org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration config,
org.semanticweb.owlapi.model.IRI excludedIRI) |
void |
storeOntologyFile(InputStream in,
org.semanticweb.owlapi.model.IRI documentIRI) |
void |
updatePropertyDependentIris(OntologyProperty property,
Collection<String> newDependentPropertyIris) |
void |
updatePropertyDomainIris(OntologyProperty property,
Set<String> domainIris) |
addConceptTypeFilterToQuery, addEdgeLabelFilterToQuery, createOwlOntologyManager, definePropertyOnGraph, determineSearchable, findOwlFile, getConceptAndAllChildren, getConceptAndAllChildrenByIri, getConceptByIntent, getConceptByIRI, getConceptIRIByIntent, getConfiguration, getDependentPropertyParent, getOrCreateProperty, getParentConcept, getPropertiesByIntent, getPropertyByIntent, getPropertyByIRI, getPropertyIRIByIntent, getRelationshipAndAllChildren, getRelationshipByIntent, getRelationshipByIRI, getRelationshipIRIByIntent, getRequiredConceptByIntent, getRequiredConceptByIRI, getRequiredConceptIRIByIntent, getRequiredPropertyByIntent, getRequiredPropertyByIRI, getRequiredPropertyIRIByIntent, getRequiredRelationshipByIntent, getRequiredRelationshipIRIByIntent, getRequiredVisalloPropertyByIntent, getVisalloPropertyByIntent, guessDocumentIRIFromFile, guessDocumentIRIFromPackage, importDataProperty, importFile, importFileData, importInverseOf, importObjectProperty, importOntologyAnnotationProperties, importOntologyClass, importResourceOwl, loadOntologies, resolvePropertyIds, setIconProperty, writePackagepublic static final String ID_PREFIX
public static final String ID_PREFIX_PROPERTY
public static final String ID_PREFIX_RELATIONSHIP
public static final String ID_PREFIX_CONCEPT
protected com.google.common.cache.Cache<String,List<OntologyProperty>> allPropertiesCache
@Inject
public VertexiumOntologyRepository(org.vertexium.Graph graph,
Configuration config,
GraphAuthorizationRepository graphAuthorizationRepository,
LockRepository lockRepository)
throws Exception
Exceptionprotected void importOntologyAnnotationProperty(org.semanticweb.owlapi.model.OWLOntology o,
org.semanticweb.owlapi.model.OWLAnnotationProperty annotationProperty,
File inDir,
org.vertexium.Authorizations authorizations)
importOntologyAnnotationProperty in class OntologyRepositoryBasepublic org.visallo.web.clientapi.model.ClientApiOntology getClientApiObject()
getClientApiObject in interface OntologyRepositorygetClientApiObject in class OntologyRepositoryBasepublic void clearCache()
protected void addEntityGlyphIconToEntityConcept(Concept entityConcept, byte[] rawImg)
addEntityGlyphIconToEntityConcept in class OntologyRepositoryBasepublic void storeOntologyFile(InputStream in, org.semanticweb.owlapi.model.IRI documentIRI)
storeOntologyFile in class OntologyRepositoryBasepublic boolean isOntologyDefined(String iri)
isOntologyDefined in interface OntologyRepositoryisOntologyDefined in class OntologyRepositoryBasepublic List<org.semanticweb.owlapi.model.OWLOntology> loadOntologyFiles(org.semanticweb.owlapi.model.OWLOntologyManager m, org.semanticweb.owlapi.model.OWLOntologyLoaderConfiguration config, org.semanticweb.owlapi.model.IRI excludedIRI) throws org.semanticweb.owlapi.model.OWLOntologyCreationException, IOException
loadOntologyFiles in class OntologyRepositoryBaseorg.semanticweb.owlapi.model.OWLOntologyCreationExceptionIOExceptionpublic Iterable<Relationship> getRelationships()
public Iterable<OntologyProperty> getProperties()
protected com.google.common.collect.ImmutableList<String> getDependentPropertyIris(org.vertexium.Vertex vertex)
public boolean hasRelationshipByIRI(String relationshipIRI)
public Concept getEntityConcept()
protected List<Concept> getChildConcepts(Concept concept)
getChildConcepts in class OntologyRepositoryBaseprotected List<Relationship> getChildRelationships(Relationship relationship)
getChildRelationships in class OntologyRepositoryBasepublic Concept getOrCreateConcept(Concept parent, String conceptIRI, String displayName, File inDir)
public Concept getOrCreateConcept(Concept parent, String conceptIRI, String displayName, File inDir, boolean isDeclaredInOntology)
protected void findOrAddEdge(org.vertexium.Vertex fromVertex,
org.vertexium.Vertex toVertex,
String edgeLabel)
public OntologyProperty addPropertyTo(List<Concept> concepts, List<Relationship> relationships, String propertyIri, String displayName, org.visallo.web.clientapi.model.PropertyType dataType, Map<String,String> possibleValues, Collection<org.vertexium.TextIndexHint> textIndexHints, boolean userVisible, boolean searchable, boolean addable, boolean sortable, String displayType, String propertyGroup, Double boost, String validationFormula, String displayFormula, com.google.common.collect.ImmutableList<String> dependentPropertyIris, String[] intents, boolean deleteable, boolean updateable)
addPropertyTo in class OntologyRepositoryBaseprotected void getOrCreateInverseOfRelationship(Relationship fromRelationship, Relationship inverseOfRelationship)
getOrCreateInverseOfRelationship in class OntologyRepositoryBasepublic Relationship getOrCreateRelationshipType(Relationship parent, Iterable<Concept> domainConcepts, Iterable<Concept> rangeConcepts, String relationshipIRI)
public void updatePropertyDependentIris(OntologyProperty property, Collection<String> newDependentPropertyIris)
public void updatePropertyDomainIris(OntologyProperty property, Set<String> domainIris)
protected org.vertexium.Authorizations getAuthorizations()
protected org.vertexium.Graph getGraph()
protected OntologyProperty createOntologyProperty(org.vertexium.Vertex propertyVertex, com.google.common.collect.ImmutableList<String> dependentPropertyIris)
protected Relationship createRelationship(String parentIRI, org.vertexium.Vertex relationshipVertex, List<String> inverseOfIRIs, List<String> domainConceptIris, List<String> rangeConceptIris, Collection<OntologyProperty> properties)
protected Concept createConcept(org.vertexium.Vertex vertex, List<OntologyProperty> conceptProperties, String parentConceptIRI)
protected Concept createConcept(org.vertexium.Vertex vertex)
Copyright © 2013–2017 V5 Analytics. All rights reserved.