|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IOntologyModel
Ontology Model - get/create/etc instances, classes, relationships, literals, statements, etc
| Method Summary | |
|---|---|
IBlankNode |
createBlankNode()
Creates new blank node in the model |
IInstanceNode |
createInstanceNode(java.lang.String aURI)
Creates new InstanceNode in the model or, if it already exists, returns the existing one |
ILiteral |
createLiteral(java.lang.String aValue)
Creates new Literal in the model or, if it already exists, returns the existing one |
ILiteralRange |
createLiteralRange(java.lang.String name)
Creates a LiteralRange object, the 'name' can be something like: http://www.w3.org/2001/XMLSchema#integer |
ILiteralStatement |
createLiteralStatement(IResource aSubject,
ISchemaProperty aPredicate,
ILiteral aObject)
Creates literal statement - resrouce X is connected to literal Y |
ISchemaClass |
createSchemaClass(java.lang.String aURI)
Creates new SchemaClass in the model or, if it already exists, returns the existing one |
ISchemaDatatypeProperty |
createSchemaDatatypeProperty(java.lang.String aURI)
Creates new SchemaDatatypeProperty in the model or, if it already exists, returns the existing one |
ISchemaObjectProperty |
createSchemaObjectProperty(java.lang.String aURI)
Creates new SchemaObjectProperty in the model or, if it already exists, returns the existing one |
ISchemaProperty |
createSchemaProperty(java.lang.String aURI)
Creates new SchemaProperty in the model or, if it already exists, returns the existing one |
IResourceStatement |
createStatement(IInstanceNode aSubject,
ISchemaProperty aPredicate,
IInstanceNode aObject)
Creates statement that connect two instances |
IResourceStatement |
createStatement(ISchemaClass aSubject,
ISchemaProperty aPredicate,
ISchemaClass aObject)
Creates statement that include only schema classes - schema ontology |
IResourceStatement |
createStatement(ISchemaProperty aSubject,
ISchemaProperty aPredicate,
ISchemaProperty aObject)
Creates statement property-property-property - ontology of properties |
ITypeOfStatement |
createTypeOfStatement(IInstanceNode aSubject,
ISchemaClass aType)
Creates type statement - instance X is of type Y |
IInstanceNode |
getInstanceNode(java.lang.String aURI)
Returns existing instance node or null if not found |
int |
getInstanceNodeCount()
Returns count of instance nodes in the model |
IExtendedIterator<IInstanceNode> |
getInstanceNodes()
Returns all instance nodes from model |
int |
getInstanceStatementCount()
Returns number of instance statements |
IExtendedIterator<IResourceStatement> |
getInstanceStatements()
Returns instance statements from ontology |
ILiteral |
getLiteral(java.lang.String aValue)
Returns existing literal node or null if not found |
int |
getLiteralCount()
Returns count of literals in the model |
IExtendedIterator<ILiteral> |
getLiterals()
Returns all literals from model |
int |
getLiteralStatementCount()
Returns number of literal statements |
IExtendedIterator<ILiteralStatement> |
getLiteralStatements()
Returns all literal statements in ontology |
ISchemaClass |
getSchemaClass(java.lang.String aURI)
Returns existing schemaClass or null if not found |
int |
getSchemaClassCount()
Returns count of schema classes in the model |
IExtendedIterator<ISchemaClass> |
getSchemaClasses()
Returns all SchemaClass objects in model |
int |
getSchemaClassStatementCount()
Returns number of schema class statements |
IExtendedIterator<IResourceStatement> |
getSchemaClassStatements()
Returns all schema class statements |
IExtendedIterator<ISchemaProperty> |
getSchemaProperties()
Retuns all SchemaProperties in the model |
ISchemaProperty |
getSchemaProperty(java.lang.String aURI)
Returns existing SchemaProperty object or null if not found |
int |
getSchemaPropertyCount()
Returns count of schema properties in model |
int |
getSchemaPropertyStatementCount()
Returns number of schema property statements |
IExtendedIterator<IResourceStatement> |
getSchemaPropertyStatements()
Returns all SchemaProperty statements |
IExtendedIterator<ILiteralStatement> |
getStatements(IResource subject,
ISchemaProperty property,
ILiteral literal)
Returns statements with specified subject, predicate, literal |
IExtendedIterator<IResourceStatement> |
getStatements(IResource subject,
ISchemaProperty property,
IResource object)
Returns statements with specified subject, predicate, object |
void |
loadOntology(java.lang.String aLocation)
Loads ontology model from the specified location |
| Method Detail |
|---|
IExtendedIterator<IResourceStatement> getInstanceStatements()
Returns instance statements from ontology
IExtendedIterator<IResourceStatement> getSchemaClassStatements()
Returns all schema class statements
IExtendedIterator<IResourceStatement> getSchemaPropertyStatements()
Returns all SchemaProperty statements
IExtendedIterator<ILiteralStatement> getLiteralStatements()
Returns all literal statements in ontology
ILiteral createLiteral(java.lang.String aValue)
Creates new Literal in the model or, if it already exists, returns the existing one
aValue - the lteral value, if it is null, no object is created and this method returns null
IInstanceNode createInstanceNode(java.lang.String aURI)
Creates new InstanceNode in the model or, if it already exists, returns the existing one
aURI -
ISchemaClass createSchemaClass(java.lang.String aURI)
Creates new SchemaClass in the model or, if it already exists, returns the existing one
aURI - the uri, if it is null, no object is created and this method returns null
ISchemaProperty createSchemaProperty(java.lang.String aURI)
Creates new SchemaProperty in the model or, if it already exists, returns the existing one
aURI -
ISchemaObjectProperty createSchemaObjectProperty(java.lang.String aURI)
Creates new SchemaObjectProperty in the model or, if it already exists, returns the existing one
aURI -
ISchemaDatatypeProperty createSchemaDatatypeProperty(java.lang.String aURI)
Creates new SchemaDatatypeProperty in the model or, if it already exists, returns the existing one
aURI -
IBlankNode createBlankNode()
Creates new blank node in the model
ILiteral getLiteral(java.lang.String aValue)
Returns existing literal node or null if not found
aValue -
IInstanceNode getInstanceNode(java.lang.String aURI)
Returns existing instance node or null if not found
aURI -
ISchemaClass getSchemaClass(java.lang.String aURI)
Returns existing schemaClass or null if not found
aURI -
ISchemaProperty getSchemaProperty(java.lang.String aURI)
Returns existing SchemaProperty object or null if not found
aURI -
IResourceStatement createStatement(IInstanceNode aSubject,
ISchemaProperty aPredicate,
IInstanceNode aObject)
Creates statement that connect two instances
aSubject - aPredicate - aObject -
IResourceStatement createStatement(ISchemaClass aSubject,
ISchemaProperty aPredicate,
ISchemaClass aObject)
Creates statement that include only schema classes - schema ontology
aSubject - aPredicate - aObject -
ILiteralStatement createLiteralStatement(IResource aSubject,
ISchemaProperty aPredicate,
ILiteral aObject)
Creates literal statement - resrouce X is connected to literal Y
aSubject - aPredicate - aObject -
ITypeOfStatement createTypeOfStatement(IInstanceNode aSubject,
ISchemaClass aType)
Creates type statement - instance X is of type Y
aSubject - aType -
IResourceStatement createStatement(ISchemaProperty aSubject,
ISchemaProperty aPredicate,
ISchemaProperty aObject)
Creates statement property-property-property - ontology of properties
aSubject - aPredicate - aObject -
IExtendedIterator<ILiteral> getLiterals()
Returns all literals from model
IExtendedIterator<IInstanceNode> getInstanceNodes()
Returns all instance nodes from model
IExtendedIterator<ISchemaClass> getSchemaClasses()
Returns all SchemaClass objects in model
IExtendedIterator<ISchemaProperty> getSchemaProperties()
Retuns all SchemaProperties in the model
int getSchemaClassStatementCount()
Returns number of schema class statements
int getInstanceStatementCount()
Returns number of instance statements
int getSchemaPropertyStatementCount()
Returns number of schema property statements
int getLiteralStatementCount()
Returns number of literal statements
int getLiteralCount()
Returns count of literals in the model
int getInstanceNodeCount()
Returns count of instance nodes in the model
int getSchemaClassCount()
Returns count of schema classes in the model
int getSchemaPropertyCount()
Returns count of schema properties in model
void loadOntology(java.lang.String aLocation)
Loads ontology model from the specified location
aLocation - Location (file/URI) of ontology to loadILiteralRange createLiteralRange(java.lang.String name)
Creates a LiteralRange object, the 'name' can be something like: http://www.w3.org/2001/XMLSchema#integer
name -
IExtendedIterator<IResourceStatement> getStatements(IResource subject,
ISchemaProperty property,
IResource object)
Returns statements with specified subject, predicate, object
A null parameter is interpreted as ANY
subject - The subject resourceproperty - The schema propertyobject - The object resource
IExtendedIterator<ILiteralStatement> getStatements(IResource subject,
ISchemaProperty property,
ILiteral literal)
Returns statements with specified subject, predicate, literal
A null parameter is interpreted as ANY
subject - The subject resourceproperty - The schema propertyliteral - The literal object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||