[model] element index

Package indexes

All elements
a b c d e f g h i l m n o p r s t u v w _
_
top
_addStatementFromAnotherModel
Adds a statement from another model to this model.
_checkBaseURI
If the URI doesn't end with # : or /, then a # is added to the URI.
_checkNamespace
checks if a namespace is already in the model.
_containsIndex
Checks if $statement is in index
_containsRow
Check if this DbModel contains the given row from the array fields[] of an ADORecordSet
_convertRecordSetToMemModel
Convert an ADORecordSet to a memory Model.
_createDynSqlPart_SPO
Create the dynamic part of an sql statement selecting triples with the given parameters ($subject, $predicate, $object).
_createTables_MsAccess
Create tables and indexes for MsAccess database
_createTables_mssql
Create tables and indexes for MSSQL database
_createTables_MySql
Create tables and indexes for MySQL database
_createUniqueDatasetID
Create a unique ID for the dataset to be insert into the datasets table.
_createUniqueModelID
Create a unique ID for the DbModel to be insert into the models table.
_findInIndex
MemModel::_findInIndex() in MemModel.php
finds a statement in an index. $pos is the Position in the index and $ind the adequate searchindex
_findMatchIndex
finds next or previous matching statement.
_getNodeFlag
' Return the flag of the Node object.
_getRecordSet
Get an ADORecordSet with array fields[] containing a representation of
_indexOpr
MemModel::_indexOpr() in MemModel.php
adds/removes a statement into/from an index.
_isSetup_MsAccess
Checks if tables are setup for RAP (MsAccess)
_isSetup_MSSQL
Checks if tables are setup for RAP (MSSQL)
_isSetup_MySql
Checks if tables are setup for RAP (MySql)
a
top
add
MemModel::add() in MemModel.php
Adds a new triple to the MemModel without checking if the statement is already in the MemModel.
add
DbModel::add() in DbModel.php
Add a new triple to this DbModel.
addModel
MemModel::addModel() in MemModel.php
Adds another model to this MemModel.
addModel
DbModel::addModel() in DbModel.php
Add the given model to this DbModel.
addNamespace
MemModel::addNamespace() in MemModel.php
Adds a namespace and prefix to the model.
addNamespace
Adds a namespace and prefix to the model.
addParsedNamespaces
Adds the namespaces to the model. This method is called by the parser. !!!! addParsedNamespaces() not overwrites manual added namespaces in the model !!!!
addParsedNamespaces
Adds the namespaces to the model. This method is called by the parser. !!!! addParsedNamespaces() not overwrites manual added namespaces in the model !!!!
addWithoutDuplicates
Checks if a new statement is already in the MemModel and adds the statement, if it is not in the MemModel.
addWithoutDuplicates
Alias for the method add().
b
top
$baseURI
Model::$baseURI in Model.php
Base URI of the Model.
$bNodeCount
Model::$bNodeCount in Model.php
Number of the last assigned bNode.
BlankNode
BlankNode::BlankNode() in Blanknode.php
Constructor You can supply a label or You supply a model and a unique ID is gernerated.
BlankNode
BlankNode in Blanknode.php
An RDF blank node.
Blanknode.php
Blanknode.php in Blanknode.php
c
top
close
MemModel::close() in MemModel.php
Close the MemModel and free up resources held.
close
DbModel::close() in DbModel.php
Close this DbModel
close
DbStore::close() in DbStore.php
Close the DbStore.
compare
Statement::compare() in Statement.php
Compares two statements and returns integer less than, equal to, or greater than zero.
contains
MemModel::contains() in MemModel.php
Tests if the MemModel contains the given triple.
contains
DbModel::contains() in DbModel.php
Check if the DbModel contains the given statement.
containsAll
MemModel::containsAll() in MemModel.php
Determine if all of the statements in a model are also contained in this MemModel.
containsAll
DbModel::containsAll() in DbModel.php
Determine if all of the statements in the given model are also contained in this DbModel.
containsAny
MemModel::containsAny() in MemModel.php
Determine if any of the statements in a model are also contained in this MemModel.
containsAny
DbModel::containsAny() in DbModel.php
Determine if any of the statements in the given model are also contained in this DbModel.
createTables
Create tables and indexes for the given database type.
d
top
$dbConn
DbModel::$dbConn in DbModel.php
Database connection object.
$dbConn
DbStore::$dbConn in DbStore.php
Database connection object
$dtype
Literal::$dtype in Literal.php
Datatype of the literal
datasetExists
Check if the Dataset with the given $datasetName is already stored in the database
DbModel
DbModel::DbModel() in DbModel.php
Constructor Do not call this directly.
DbModel
DbModel in DbModel.php
This class provides methods for manipulating DbModels from DbStore.
DbStore
DbStore in DbStore.php
DbStore is a persistent store of RDF data using relational database technology.
DbStore
DbStore::DbStore() in DbStore.php
Constructor: Set the database connection with the given parameters.
delete
DbModel::delete() in DbModel.php
Remove this DbModel from database and clean up.
DbModel.php
DbModel.php in DbModel.php
DbStore.php
DbStore.php in DbStore.php
e
top
equals
Resource::equals() in Resource.php
Checks if the resource equals another resource.
equals
Statement::equals() in Statement.php
Checks if two statements are equal.
equals
MemModel::equals() in MemModel.php
Checks if two models are equal.
equals
Literal::equals() in Literal.php
Checks if ihe literal equals another literal.
equals
DbModel::equals() in DbModel.php
Check if two models are equal.
equals
BlankNode::equals() in Blanknode.php
Checks if two blank nodes are equal.
f
top
find
DbModel::find() in DbModel.php
General method to search for triples in the DbModel.
find
MemModel::find() in MemModel.php
General method to search for triples.
findAsIterator
Returns a FindIterator for traversing the MemModel.
findCount
DbModel::findCount() in DbModel.php
Search for triples and return the number of matches.
findCount
MemModel::findCount() in MemModel.php
Searches for triples and returns the number of matches.
findFirstMatchingStatement
Search for triples and return the first matching statement.
findFirstMatchingStatement
Searches for triples and returns the first matching statement.
findFirstMatchOff
Searches for triples and returns the first matching statement from a given offset.
findForward
Searches for triples using find() and tracks forward blank nodes until the final objects in the retrieved subgraphs are all named resources.
findRegex
MemModel::findRegex() in MemModel.php
Method to search for triples using Perl-style regular expressions.
findRegex
DbModel::findRegex() in DbModel.php
Method to search for triples using Perl-style regular expressions.
findVocabulary
Returns all tripels of a certain vocabulary.
findVocabulary
Return all tripels of a certain vocabulary.
g
top
getBaseURI
Model::getBaseURI() in Model.php
Return current baseURI.
getDatasetDb
Create a new instance of DatasetDb with the given $datasetName and load the corresponding values from the database.
getDatasetMem
ModelFactory::getDatasetMem() in ModelFactory.php
Returns a NamedGraphSetMem.
getDatatype
Literal::getDatatype() in Literal.php
Returns the datatype of the literal.
getDbModel
ModelFactory::getDbModel() in ModelFactory.php
Returns a new DbModel using the database connection supplied by $dbStore.
getDbStore
ModelFactory::getDbStore() in ModelFactory.php
Returns a database connection with the given parameters.
getDefaultDbModel
Returns a DbModel with the database connection defined in constants.php.
getDefaultModel
Returns a MemModel.
getID
BlankNode::getID() in Blanknode.php
Returns the ID of the blank node.
getIndexType
MemModel::getIndexType() in MemModel.php
Returns the indextype: -1 if there is no index, 0 if there are indices over S,P,O(separate),
  1. if there is an index over SPO, 2 if there is an index over SP and 3 if
there is an index over SO.
getInfModelB
ModelFactory::getInfModelB() in ModelFactory.php
Returns a InfModelB.
getInfModelF
ModelFactory::getInfModelF() in ModelFactory.php
Returns a InfModelF.
getLabel
Resource::getLabel() in Resource.php
Returns the label of the resource, which is the URI of the resource.
getLabel
BlankNode::getLabel() in Blanknode.php
Returns the ID of the blank node.
getLabel
Literal::getLabel() in Literal.php
Returns the string value of the literal.
getLabelObject
Reurns the URI, text or bNode identifier of the statements's object.
getLabelPredicate
Returns the URI of the statements's predicate.
getLabelSubject
Returns the URI or bNode identifier of the statements's subject.
getLanguage
Literal::getLanguage() in Literal.php
Returns the language of the literal.
getLocalName
Resource::getLocalName() in Resource.php
Returns the local name of the resource.
getMemModel
ModelFactory::getMemModel() in ModelFactory.php
Returns a MemModel.
getMemModel
DbModel::getMemModel() in DbModel.php
Create a MemModel containing all the triples of the current DbModel.
getMemModelByRDQL
Perform an RDQL query on this Model. Should work with all types of models.
getModel
DbStore::getModel() in DbStore.php
Create a new instance of DbModel with the given $modelURI and load the corresponding values of modelID and baseURI from the database.
getNamedGraphDb
Create a new instance of namedGraphDb with the given $modelURI and graphName and load the corresponding values of modelID and baseURI from the database.
getNamespace
Resource::getNamespace() in Resource.php
Returns the namespace of the resource. May return null.
getNewDatasetDb
Create a new instance of DatasetDb with the given $datasetName and insert the DatasetDb variables into the database.
getNewModel
DbStore::getNewModel() in DbStore.php
Create a new instance of DbModel with the given $modelURI and insert the DbModel variables into the database.
getNewNamedGraphDb
Create a new instance of namedGraphDb with the given $modelURI and graphName and insert the DbModel variables into the database (not the graphName. This is only stored persistently, when added to dataset).
getObject
Statement::getObject() in Statement.php
Returns the object of the triple.
getOntModel
Returns an OntModel with this model as baseModel.
getOntModel
ModelFactory::getOntModel() in ModelFactory.php
Returns an OntModel.
getOntModelForBaseModel
Creates an OntModel that wraps an existing base model.
getParsedNamespaces
Returns the models namespaces.
getParsedNamespaces
Returns the models namespaces.
getPredicate
Statement::getPredicate() in Statement.php
Returns the predicate of the triple.
getResModel
Returns a ResModel with this model as baseModel. This is the same as ModelFactory::getResModelForBaseModel($this).
getResModel
ModelFactory::getResModel() in ModelFactory.php
Returns a ResModel.
getResModelForBaseModel
Creates a ResModel that wraps an existing base model.
getSparqlClient
Creates a SparqlClient.
getStatementIterator
Returns a StatementIterator for traversing the MemModel.
getSubject
Statement::getSubject() in Statement.php
Returns the subject of the triple.
getUniqueResourceURI
Internal method, that returns a resource URI that is unique for the Model.
getURI
Resource::getURI() in Resource.php
Returns the URI of the resource.
h
top
hashCode
Statement::hashCode() in Statement.php
Retruns the hash code of the triple.
i
top
$indexArr
MemModel::$indexArr in MemModel.php
Array containing the search indices
$indexed
MemModel::$indexed in MemModel.php
depending on which index is used this variable is -1,0,1,2 or 3
index
MemModel::index() in MemModel.php
Builds a search index for the statements in the MemModel.
intersect
MemModel::intersect() in MemModel.php
Returns a new MemModel containing all the statements which are in both this MemModel and another.
intersect
DbModel::intersect() in DbModel.php
Return a new MemModel containing all the statements which are in both this model and the given model.
isEmpty
MemModel::isEmpty() in MemModel.php
Checks if MemModel is empty
isEmpty
DbModel::isEmpty() in DbModel.php
Check if this DbModel is empty.
isIndexed
MemModel::isIndexed() in MemModel.php
Returns true if there is an index, false if not.
isSetup
DbStore::isSetup() in DbStore.php
Checks if tables are setup for RAP
iterFind
MemModel::iterFind() in MemModel.php
Returns a FindIterator for traversing the MemModel.
iterFind
DbModel::iterFind() in DbModel.php
Returns a FindIterator for traversing the MemModel.
l
top
$label
Literal::$label in Literal.php
Label of the literal
$lang
Literal::$lang in Literal.php
Language of the literal
listModels
DbStore::listModels() in DbStore.php
List all DbModels stored in the database.
Literal
Literal::Literal() in Literal.php
Constructor
Literal
Literal in Literal.php
An RDF literal.
load
Model::load() in Model.php
Load a model from a file containing RDF, N3, N-Triples or a xhtml document containing RDF.
Literal.php
Literal.php in Literal.php
m
top
$modelID
DbModel::$modelID in DbModel.php
Database internal modelID.
$modelURI
DbModel::$modelURI in DbModel.php
Unique model URI.
matchStatement
Internal method that checks, if a statement matches a S, P, O or NULL combination.
MemModel
MemModel in MemModel.php
A MemModel is an RDF Model, which is stored in the main memory.
MemModel
MemModel::MemModel() in MemModel.php
Constructor You can supply a base_uri
Model
Model::Model() in Model.php
Notice for people who are used to work with older versions of RAP.
Model
Model in Model.php
Abstract superclass of MemModel and DbModel. A model is a programming interface to an RDF graph.
MemModel.php
MemModel.php in MemModel.php
Model.php
Model.php in Model.php
ModelFactory.php
ModelFactory.php in ModelFactory.php
modelExists
DbStore::modelExists() in DbStore.php
Check if the DbModel with the given modelURI is already stored in the database
ModelFactory
ModelFactory in ModelFactory.php
ModelFactory is a static class which provides methods for creating different types of RAP models. RAP models have to be created trough a ModelFactory instead of creating them directly with the 'new' operator because of RAP's dynamic code inclusion mechanism.
n
top
Node.php
Node.php in Node.php
Node
Node in Node.php
An abstract RDF node.
o
top
$obj
Statement::$obj in Statement.php
Object of the statement
object
Statement::object() in Statement.php
Alias for getObject()
p
top
$parsedNamespaces
Array of namespaces
$pred
Statement::$pred in Statement.php
Predicate of the statement
predicate
Statement::predicate() in Statement.php
Alias for getPredicate()
putModel
DbStore::putModel() in DbStore.php
Store a MemModel or another DbModel from a different DbStore in the database.
r
top
Resource.php
Resource.php in Resource.php
rdqlQuery
MemModel::rdqlQuery() in MemModel.php
Perform an RDQL query on this MemModel.
rdqlQuery
DbModel::rdqlQuery() in DbModel.php
Perform an RDQL query on this DbModel.
rdqlQueryAsIterator
Perform an RDQL query on this DBModel.
rdqlQueryAsIterator
Perform an RDQL query on this MemModel.
reify
MemModel::reify() in MemModel.php
Reifies the MemModel.
reify
DbModel::reify() in DbModel.php
Reify the DbModel.
reify
Statement::reify() in Statement.php
Reifies a statement.
remove
MemModel::remove() in MemModel.php
Removes the triple from the MemModel.
remove
DbModel::remove() in DbModel.php
Remove the given triple from this DbModel.
removeNamedGraphDb
Removes the graph with all statements from the database.
removeNamespace
removes a single namespace from the model
removeNamespace
removes a single namespace from the model
replace
MemModel::replace() in MemModel.php
General method to replace nodes of a MemModel.
replace
DbModel::replace() in DbModel.php
General method to replace nodes of a DbModel.
Resource
Resource::Resource() in Resource.php
Constructor Takes an URI or a namespace/localname combination
Resource
Resource in Resource.php
An RDF resource.
s
top
$subj
Statement::$subj in Statement.php
Subject of the statement
Statement.php
Statement.php in Statement.php
saveAs
MemModel::saveAs() in MemModel.php
Saves the RDF,N3 or N-Triple serialization of the MemModel to a file.
saveAs
DbModel::saveAs() in DbModel.php
Saves the RDF,N3 or N-Triple serialization of the DbModel to a file.
setBaseURI
MemModel::setBaseURI() in MemModel.php
Set a base URI for the MemModel.
setBaseURI
DbModel::setBaseURI() in DbModel.php
Set a base URI for the DbModel.
setDatatype
Literal::setDatatype() in Literal.php
Sets the datatype of the literal.
setLanguage
Literal::setLanguage() in Literal.php
Sets the language of the literal.
size
MemModel::size() in MemModel.php
Number of triples in the MemModel
size
DbModel::size() in DbModel.php
Return the number of statements in this DbModel.
SPARQL.php
SPARQL.php in SPARQL.php
sparqlQuery
Performs a SPARQL query against a model. The model is converted to an RDF Dataset. The result can be retrived in SPARQL Query Results XML Format or as an array containing the variables an their bindings.
Statement
Statement::Statement() in Statement.php
The parameters to constructor are instances of classes and not just strings
Statement
Statement in Statement.php
An RDF statement.
statementsorter
statementsorter() in Statement.php
Comparison function for comparing two statements.
subject
Statement::subject() in Statement.php
Alias for getSubject()
subtract
DbModel::subtract() in DbModel.php
Return a new MemModel that is the subtraction of another model from this DbModel.
subtract
MemModel::subtract() in MemModel.php
Returns a new MemModel that is the subtraction of another model from this MemModel.
t
top
$triples
MemModel::$triples in MemModel.php
Triples of the MemModel
toString
BlankNode::toString() in Blanknode.php
Dumps bNode.
toString
Statement::toString() in Statement.php
Dumps the triple.
toString
Resource::toString() in Resource.php
Dumps resource.
toString
MemModel::toString() in MemModel.php
Short Dump of the MemModel.
toString
Literal::toString() in Literal.php
Dumps literal.
toString
DbModel::toString() in DbModel.php
Short dump of the DbModel.
toStringIncludingTriples
Dumps of the MemModel including all triples.
toStringIncludingTriples
Dump of the DbModel including all triples.
toStringObject
Reurns a toString() serialization of the statements's object.
toStringPredicate
Returns a toString() serialization of the statements's predicate.
toStringSubject
Returns a toString() serialization of the statements's subject.
u
top
$uri
Resource::$uri in Resource.php
URIref to the resource
unite
MemModel::unite() in MemModel.php
Returns a new MemModel that is the set-union of the MemModel with another model.
unite
DbModel::unite() in DbModel.php
Return a new MemModel that is the set-union the model with another model.
v
top
visualize
Model::visualize() in Model.php
Alias for RDFUtil::visualiseGraph(&$model, $format, $short_prefix)
w
top
writeAsHtml
MemModel::writeAsHtml() in MemModel.php
Writes the RDF serialization of the MemModel as HTML.
writeAsHtml
DbModel::writeAsHtml() in DbModel.php
Write the RDF serialization of the _DbModel as HTML.
writeAsHtmlTable
Writes the RDF serialization of the MemModel as HTML table.
writeAsHtmlTable
Write the RDF serialization of the DbModel as HTML table.
writeRdfToString
Writes the RDF serialization of the MemModel as HTML table.
writeRdfToString
Write the RDF serialization of the DbModel to string.
a b c d e f g h i l m n o p r s t u v w _