-
$arCastTypes
-
SQL types to cast XSD schema types to, so that they will get sorted correctly.
-
$arCreationMethods
-
Defines the methods needed to create the types in $arVarAssignments.
-
$arCreationMethods
-
Defines the methods needed to create the types in $arVarAssignments.
-
$arCreationMethods
-
Defines the methods needed to create the types in $arVarAssignments.
-
$arDumbOperators
-
-
$arFuncParamNumbers
-
Number of parameters for the functions supported.
-
$arOperatorSwitches
-
List of operators and their counterpart if operands are switched.
-
$arPlaceholders
-
Array with placeholders of prepared statements variables.
-
$arPrepared
-
Prepared SQL statements are stored in here.
-
$arrOutput
-
-
$arTableColumnNames
-
Column names for subjects, predicates and objects for easy access via their character names (spo).
-
$arTypeNumbers
-
Defines the sort order for value types in the database, so that they get sorted correctly as the specs want it.
-
$arUnionVarAssignments
-
Array of arrays that contain all variable names which are to be found in the result of an sql statement in a union.
-
$arUsedVarAssignments
-
Array of variable name => table.col assignments for all variables used in the query not only the ones that shall be returned.
-
$arUsedVarTypes
-
Which variables have been used as which type? key is variable name, value is an array of max. three keys (s, p, o)
-
$arVarAssignments
-
Determines which variables can be found in which SQL result column.
-
addConstraint
-
Adds a Constraint to the GraphPattern.
-
addConstructGraphPattern
-
Adds a construct graph pattern to the query.
-
addDefaultGraph
-
Adds a default graph to the query object.
-
addExpression
-
Adds an expression string.
-
addFrom
-
Adds a graphuri to the from part.
-
addFromNamed
-
Adds a graphuri to the from named part.
-
addGraphPattern
-
Adds a graph pattern to the result part.
-
addNamedGraph
-
Adds a named graph to the query object.
-
addOptional
-
Adds a pointer to an optional graphPattern.
-
addPrefix
-
Adds a prefix to the list of prefixes.
-
addTriplePattern
-
Adds a List of QueryTriples to the GraphPattern.
-
addUnion
-
Adds a pointer to a union graphPattern.
-
addVar
-
Adds a new variable to the variable list.
-
addVariable
-
Adds a variable to the list of result variables.
-
$constraint
-
-
$constructPattern
-
If the query type is CONSTRUCT this variable contains the CONSTRUCT graph pattern.
-
$counter
-
-
$current_literal
-
-
checkDtypeLang
-
Checks if there is a datatype given and appends it to the node.
-
checkIntBindings
-
Checks it there are internal bindings between variables.
-
ClientQuery
-
ClientQuery Object to run a SPARQL Query against a SPARQL server.
-
compareTypeSet
-
Compares two type sets. Works like a normal comparision method that returns -1/0/1 for use in usort()
-
compareXsdType
-
Compares two XSD data types and returns the comparison number.
-
Constraint
-
Represents a constraint. A value constraint is a boolean- valued expression of variables and RDF Terms.
-
constructGraph
-
Constructs a result graph.
-
constructGraph
-
Constructs a result graph.
-
convertFromDbResults
-
Determines the correct renderer and calls it.
-
convertFromDbResults
-
Converts the database results into the desired output format and returns the result.
-
convertFromDbResults
-
Converts the database results into the desired output format and returns the result.
-
convertFromDbResults
-
Converts the database results into nice HTML.
-
convertFromDbResults
-
Converts the database results into nice HTML.
-
convertFromResult
-
Converts the database results into the output format and returns the result.
-
convertFromResult
-
Determines the correct renderer and calls it.
-
convertFromResult
-
Converts the database results into the output format and returns the result.
-
convertFromResult
-
Converts the database results into the desired output format and returns the result.
-
convertFromResult
-
Converts the database results into the output format and returns the result.
-
createBooleanValue
-
-
createEqualSelects
-
Creates SELECT statements that have the same number of columns.
-
createEquation
-
-
createFilterSql
-
Creates the SQL representing a Sparql FILTER.
-
createFromRecords
-
-
createFunction
-
-
createFunction_bound
-
Creates an sql statement that returns if the element is a blank node
-
createFunction_datatype
-
-
createFunction_isblank
-
Creates an sql statement that returns if the element is a blank node
-
createFunction_isiri
-
-
createFunction_isliteral
-
Creates an sql statement that returns the language of the object
-
createFunction_isuri
-
-
createFunction_lang
-
Creates an sql statement that returns the language of the object
-
createFunction_langmatches
-
Creates an sql statement that checks if the variable
-
createFunction_regex
-
Creates an sql statement that checks if the given part matches
-
createFunction_sameterm
-
Creates an sql statement that checks if both terms are the same
-
createFunction_str
-
Creates an sql statement that returns the string representation
-
createFunction_xsd_datetime
-
Creates an sql statement that returns the datetime representation
-
createObjectFromDbRecordSetPart
-
Creates an RDF object object contained in the given $dbRecordSet object.
-
createObjectFromDbRecordSetPart
-
Creates an RDF object object contained in the given $dbRecordSet object.
-
createObjectFromDbRecordSetPart
-
Creates an RDF object object contained in the given $dbRecordSet object.
-
createPredicateFromDbRecordSetPart
-
Creates an RDF predicate object contained in the given $dbRecordSet object.
-
createPredicateFromDbRecordSetPart
-
Creates an RDF predicate object contained in the given $dbRecordSet object.
-
createPredicateFromDbRecordSetPart
-
Creates an RDF predicate object contained in the given $dbRecordSet object.
-
createSingleTypeCheck
-
Creates sql to ensure the type between $val and variable $tree is the same.
-
createSql
-
Creates an SQL query string from the given Sparql query object.
-
createStatementFromDbRecordSetPart
-
Creates an RDF Statement object for one of the variables contained in the given $dbRecordSet object.
-
createSubjectFromDbRecordSetPart
-
Creates an RDF subject object contained in the given $dbRecordSet object.
-
createSubjectFromDbRecordSetPart
-
Creates an RDF subject object contained in the given $dbRecordSet object.
-
createSubjectFromDbRecordSetPart
-
Creates an RDF subject object contained in the given $dbRecordSet object.
-
createTableFromRecords
-
-
createTableFromRecords
-
-
createTreeSql
-
-
createTypeEquation
-
Generates sql code to make sure the datatypes of the two operands match
-
createValue
-
Creates an RDF object object contained in the given $dbRecordSet object.
-
createValue
-
Creates the sql for an element of type "value".
-
createVariableArray
-
Creates an array full of variables to be passed to the Execute() method of the database connection object.
-
ClientQuery.php
-
-
Constraint.php
-
-
$graphname
-
Graphname. 0 if its in the default graph.
-
$graphPatternCounter
-
GraphPattern counter.
-
getAllVars
-
Returns a list with all used variables.
-
getBase
-
Returns the BASE part of the query.
-
getBlanknodeLabel
-
Returns an unused Bnode label.
-
getCastMethod
-
Returns the SQL statement needed to case the given variable to the given type.
-
getCol
-
-
getConstraint
-
Returns a constraint if there is one false if not.
-
getConstructPattern
-
Returns the construvtGraphPattern of the query if there is one.
-
getConstructPatternVariables
-
Returns a list of variables used in the construct patterns.
-
getCount
-
-
getCount
-
Returns the number of rows that the given query will return.
-
getDataset
-
-
getDatatype
-
Returns the datatype of a variable if it is set.
-
getDatatypeCol
-
-
getDateConversionSql
-
-
getExpression
-
Returns the expression string.
-
getFromNamedPart
-
Returns the FROM NAMED clause of the query.
-
getFromPart
-
Returns the FROM clause of the query.
-
getFullUri
-
Gets the full URI of a qname token.
-
getGraphname
-
Returns the graphname.
-
getHead
-
-
getHtmlBlank
-
-
getHtmlBlank
-
-
getHtmlLiteral
-
-
getHtmlLiteral
-
-
getHtmlNull
-
-
getHtmlNull
-
-
getHtmlResource
-
-
getHtmlResource
-
-
getId
-
Returns the GraphPatterns id.
-
getIsCol
-
-
getLangCol
-
-
getLanguageTag
-
Returns the language of a variable if the tag is set (e.g. @en) Returns NULL if no language is set.
-
getLimitSql
-
Creates a sql LIMIT statement if the sparql query needs one.
-
getNewPattern
-
Generates a new GraphPattern. If it is a CONSTRUCT graph pattern $constr has to set to TRUE, FALSE if not.
-
getObject
-
Returns the Triples Object.
-
getOptional
-
Returns a pointer to an optional graph pattern.
-
getOrderifiedSqls
-
Returns an array of sql statements that need to be executed and deliver the full result set when combined.
-
getPlaceholders
-
-
getPointer
-
Returns a pointer to the token which caused the exception.
-
getPredicate
-
Returns the Triples Predicate.
-
getPrefixes
-
Returns the prefix map of the query.
-
getPreparedVariablePlaceholder
-
Returns a placeholder to be included in the sql statement.
-
getQuery
-
-
getQuery
-
-
getResultForm
-
Returns the type the result shall have.
-
getResultPart
-
Returns a list containing the graph patterns of the query.
-
getResultVars
-
Returns a list containing the result vars.
-
getResultXml
-
-
getSelect
-
-
getSolutionModifier
-
Gets the solution modifiers of the query.
-
getSpecialOrderVariables
-
Returns an array of variables that the result is going to be ordered by and that need to be sorted multiple times (because they may contain different data types)
-
getSpokenBoolean
-
-
getSqlCondition
-
Creates an SQL statement that checks for the value of some subject/predicate/object
-
getSqlEqualityCondition
-
Checks if the sentence part (subject, predicate or object) in $arNew has the same content as $arOld.
-
getSqlGenerator
-
-
getSqlOrderBy
-
Returns the ORDER BY sql query string if neccessary for the query. The returned string already has ORDER BY prefixed.
-
getSqlVariableName
-
-
getSqlVariableNameDatatype
-
-
getSqlVariableNameIs
-
-
getSqlVariableNameLanguage
-
-
getSqlVariableNameValue
-
-
getStringNullComparison
-
Returns the correct sql string comparison method.
-
getSubject
-
Returns the Triples Subject.
-
getTree
-
-
getTriplePattern
-
Returns the triple pattern of the graph pattern.
-
getTripleSql
-
Creates some SQL statements from the given triple pattern array.
-
getTypeSets
-
Determines the type sets in the query results.
-
getTypesetWhereClause
-
Creates and returns the SQL WHERE clauses needed to get only data in the given typeset.
-
getTypeSorter
-
-
getUnion
-
Returns a pointer to a union graph pattern.
-
getUsedVarAssignments
-
-
getUsedVarTypes
-
-
getValueCol
-
-
getVarAssignments
-
-
getVariableArrayFromRecordSet
-
Converts a ADORecordSet object into an array of "rows" that are subarrays of variable => value pairs.
-
getVariableArrayFromRecordSets
-
-
getVariables
-
Returns an array of all variables in this triple.
-
getVariables
-
Returns an array of all variables used in this graph pattern.
-
getXmlBlank
-
-
getXmlLiteral
-
-
getXmlNull
-
-
getXmlResource
-
-
getXsdTypeNumber
-
Returns the type number for an xsd data type.
-
GraphPattern
-
A graph pattern which consists of triple patterns, optional or union graph patterns and filters.
-
GraphPattern
-
Constructor
-
GraphPattern.php
-
-
$patternId
-
-
$pr
-
Prepared statments preparator instance
-
$predicate
-
The QueryTriples Predicate.
-
$prefixes
-
-
$prefixes
-
Array that contains used prefixes and namespaces.
-
parse
-
Main function of SparqlParser. Parses a query string.
-
parse
-
Main function of SparqlResultParser
-
parseAsk
-
Sets result form to 'ASK' and 'COUNT'.
-
parseBase
-
Parses the BASE part of the query.
-
parseBrackettedExpression
-
Parses a bracketted expression.
-
parseCollection
-
Parses an RDF collection.
-
parseConstraint
-
Parses a value constraint.
-
parseConstraintTree
-
Parses a constraint string recursively.
-
parseConstruct
-
Parses the CONSTRUCT clause.
-
parseDescribe
-
Adds a new variable to the query and sets result form to 'DESCRIBE'.
-
parseExpression
-
Parses an expression.
-
parseFrom
-
Parses the FROM clause.
-
parseGraph
-
Parses a GRAPH clause.
-
parseGraphPattern
-
Parses a graph pattern.
-
parseLiteral
-
Parses a literal.
-
parseModifier
-
Parses the solution modifiers of a query.
-
parseNode
-
Parses a String to an RDF node.
-
parseOrderCondition
-
Parses order conditions of a query.
-
parsePrefix
-
Adds a new namespace prefix to the query object.
-
parseQuery
-
Starts parsing the tokenized SPARQL Query.
-
parseResult
-
-
parseSelect
-
Parses the SELECT part of a query.
-
parseTriplePattern
-
Parses a triple pattern.
-
parseWhere
-
Parses the WHERE clause.
-
prepare
-
Set all internal variables to a clear state before we start parsing.
-
prepare
-
Create a prepared statement that can be executed later.
-
prepareInDb
-
Converts the given queries into sql prepared statments,
-
preselectGraphs
-
Looks in from and from named part of the query and adds the graphs to the graphlist.
-
PreparedStatement.php
-
-
Preparator.php
-
-
PreparedStatement.php
-
-
$server
-
-
$sg
-
SQL Generator
-
$sg
-
SQL generator instance
-
$solutionModifier
-
Optional solution modifier of the query.
-
$sops
-
Operators introduced by sparql
-
$sparqlEngine
-
-
$strXmlData
-
-
$subject
-
The QueryTriples Subject.
-
selectVars
-
Selects the result variables and builds a result table.
-
setBase
-
Sets the base part.
-
setData
-
Needs to be executed before getOrderifiedSqls and willBeDataDependent
-
setGraphname
-
Sets the graphname.
-
setId
-
Sets the GraphPatterns Id.
-
setOuterFilter
-
Sets the filter type to outer or inner filter.
-
setOutputFormat
-
Sets the output format for a SELECT or ASK query. Possible formats are "xml" for Sparql Query Results XML Format (http://www.w3.org/TR/rdf-sparql-XMLres/) or array for the format described in our SparqlEngine.
-
setResultForm
-
Sets the result form.
-
setSolutionModifier
-
Sets a solution modifier.
-
setTree
-
-
sortVars
-
Sorts the results.
-
SparqlClient.php
-
-
SparqlEngine.php
-
-
SqlGenerator.php
-
-
SqlGeneratorException.php
-
-
SqlMerger.php
-
-
SparqlEngineDb.php
-
-
SparqlParser.php
-
-
SparqlParserException.php
-
-
SparqlClient
-
Constructor of SparlClient.
-
SparqlClient
-
Client for querying a sparql server.
-
SparqlEngine
-
This engine executes SPARQL queries against an RDF Datatset.
-
SparqlEngineDb
-
SPARQL engine optimized for databases.
-
SparqlEngineDb_FilterGenerator
-
Generates SQL from Sparql FILTER parts
-
SparqlEngineDb_FilterGenerator_Value
-
Value class that holds some arbitrary value and a datatype.
-
SparqlEngineDb_Offsetter
-
Determines the offset in a row of sql queries.
-
SparqlEngineDb_Preparator
-
This class takes care of prepared statements: Preparing them in the database, replacing
-
SparqlEngineDb_PreparedStatement
-
A prepared statement that can be execute()d later multiple times with different variable values.
-
SparqlEngineDb_ResultConverter
-
Converts a database result into a proper rdf statement triple array
-
SparqlEngineDb_ResultRenderer
-
Result renderer interface that any result renderer needs to implement.
-
SparqlEngineDb_ResultRenderer_Default
-
Default RAP result renderer.
-
SparqlEngineDb_ResultRenderer_HTML
-
Sparql DB HTML result renderer.
-
SparqlEngineDb_ResultRenderer_XML
-
Sparql DB XML result renderer as defined by http://www.w3.org/TR/rdf-sparql-XMLres/
-
SparqlEngineDb_SqlGenerator
-
Creates sql statements from a Query object
-
SparqlEngineDb_SqlGeneratorException
-
Exception when generating the SQL statement
-
SparqlEngineDb_SqlMerger
-
Creates an sql string from an sql array
-
SparqlEngineDb_TypeSorter
-
Sorts database types as the Sparql specs want it.
-
SparqlEngine_PreparedStatement
-
A prepared statement that can be execute()d later multiple times with different variable values.
-
SparqlEngine_ResultConverter
-
Converts a memory result into a proper rdf statement triple array
-
SparqlEngine_ResultRenderer
-
Result renderer interface that any result renderer needs to implement.
-
SparqlEngine_ResultRenderer_Default
-
Default result renderer for SparqlEngine
-
SparqlEngine_ResultRenderer_HTML
-
XML result renderer for SparqlEngine
-
SparqlEngine_ResultRenderer_XML
-
XML result renderer for SparqlEngine
-
SparqlParser
-
Constructor of SparqlParser
-
SparqlParser
-
Parses a SPARQL Query string and returns a Query Object.
-
SparqlParserException
-
A SPARQL Parser Execption for better errorhandling.
-
SparqlResultParser
-
Parses an xml document in SPARQL Result XML Format.
-
str
-
str() in FilterFunctions.php
Evaluates the str() function. Returns the string representation of a variable or RDF term.
-
switchOperator
-
-
SparqlResultParser.php
-