franz.openrdf package¶
Subpackages¶
- franz.openrdf.model package
- Submodules
- franz.openrdf.model.utils module
- Module contents
BNode
Literal
Literal.__init__()
Literal.booleanValue()
Literal.calendarValue()
Literal.datatype
Literal.dateValue()
Literal.datetimeValue()
Literal.decimalValue()
Literal.floatValue()
Literal.getDatatype()
Literal.getLabel()
Literal.getLanguage()
Literal.getValue()
Literal.get_cmp_key()
Literal.intValue()
Literal.label
Literal.language
Literal.longValue()
Literal.setDatatype()
Literal.setLabel()
Literal.setLanguage()
Literal.timeValue()
Literal.toNTriples()
Literal.toPython()
Literal.to_json_ld()
QuotedTriple
Statement
Statement.__init__()
Statement.context
Statement.getContext()
Statement.getObject()
Statement.getPredicate()
Statement.getSubject()
Statement.getTripleID()
Statement.id
Statement.object
Statement.predicate
Statement.setContext()
Statement.setObject()
Statement.setPredicate()
Statement.setSubject()
Statement.subject
URI
Value
ValueFactory
ValueFactory.BLANK_NODE_AMOUNT
ValueFactory.__init__()
ValueFactory.createBNode()
ValueFactory.createLiteral()
ValueFactory.createQuotedTriple()
ValueFactory.createRange()
ValueFactory.createStatement()
ValueFactory.createURI()
ValueFactory.getUnusedBNodeId()
ValueFactory.namespace()
ValueFactory.namespaces()
ValueFactory.object_position_term_to_openrdf_term()
ValueFactory.validateCompoundLiteral()
ValueFactory.validateRangeConstant()
parse_term()
- franz.openrdf.query package
- Submodules
- franz.openrdf.query.dataset module
- franz.openrdf.query.pandas_support module
- franz.openrdf.query.query module
- franz.openrdf.query.queryresult module
- franz.openrdf.query.repositoryresult module
- Module contents
- franz.openrdf.repository package
- Submodules
- franz.openrdf.repository.attributes module
- franz.openrdf.repository.repository module
Repository
Repository.ACCESS
Repository.CREATE
Repository.OPEN
Repository.RENEW
Repository.REPLACE
Repository.__init__()
Repository.bulk_mode
Repository.getConnection()
Repository.getDatabaseName()
Repository.getSpec()
Repository.getValueFactory()
Repository.initialize()
Repository.isWritable()
Repository.registerDatatypeMapping()
Repository.shutDown()
- franz.openrdf.repository.repositoryconnection module
DocumentKey
GeoType
PrefixFormat
RepositoryConnection
RepositoryConnection.RDFStarEnabled()
RepositoryConnection.__init__()
RepositoryConnection.add()
RepositoryConnection.addData()
RepositoryConnection.addDocumentData()
RepositoryConnection.addDocumentFile()
RepositoryConnection.addFile()
RepositoryConnection.addIndex()
RepositoryConnection.addRules()
RepositoryConnection.addStatement()
RepositoryConnection.addTriple()
RepositoryConnection.addTriples()
RepositoryConnection.add_commit_size
RepositoryConnection.allocateEncodedIds()
RepositoryConnection.callStoredProc()
RepositoryConnection.clear()
RepositoryConnection.clearAttributeFilter()
RepositoryConnection.clearNamespaces()
RepositoryConnection.clearQueryOptions()
RepositoryConnection.close()
RepositoryConnection.closeSession()
RepositoryConnection.commit()
RepositoryConnection.createBNode()
RepositoryConnection.createBox()
RepositoryConnection.createCircle()
RepositoryConnection.createCoordinate()
RepositoryConnection.createFreeTextIndex()
RepositoryConnection.createLatLongSystem()
RepositoryConnection.createLiteral()
RepositoryConnection.createPolygon()
RepositoryConnection.createQuotedTriple()
RepositoryConnection.createRange()
RepositoryConnection.createRectangularSystem()
RepositoryConnection.createStatement()
RepositoryConnection.createURI()
RepositoryConnection.deleteAttributeDefinition()
RepositoryConnection.deleteDuplicates()
RepositoryConnection.deleteFreeTextIndex()
RepositoryConnection.deleteMaterialized()
RepositoryConnection.deleteSpinFunction()
RepositoryConnection.deleteSpinMagicProperty()
RepositoryConnection.disableDuplicateSuppression()
RepositoryConnection.disableRDFStar()
RepositoryConnection.disableSubjectTriplesCache()
RepositoryConnection.dropIndex()
RepositoryConnection.enableRDFStar()
RepositoryConnection.enableSubjectTriplesCache()
RepositoryConnection.evalFreeTextSearch()
RepositoryConnection.evalGraphqlQuery()
RepositoryConnection.evalInServer()
RepositoryConnection.evalJavaScript()
RepositoryConnection.executeBooleanQuery()
RepositoryConnection.executeGraphQuery()
RepositoryConnection.executeTupleQuery()
RepositoryConnection.executeUpdate()
RepositoryConnection.export()
RepositoryConnection.exportStatements()
RepositoryConnection.getAddCommitSize()
RepositoryConnection.getAttributeDefinition()
RepositoryConnection.getAttributeDefinitions()
RepositoryConnection.getAttributeFilter()
RepositoryConnection.getContextIDs()
RepositoryConnection.getDuplicateStatements()
RepositoryConnection.getDuplicateSuppressionPolicy()
RepositoryConnection.getFreeTextIndexConfiguration()
RepositoryConnection.getGeneration()
RepositoryConnection.getGeoType()
RepositoryConnection.getNamespace()
RepositoryConnection.getNamespaces()
RepositoryConnection.getQueryOption()
RepositoryConnection.getQueryOptions()
RepositoryConnection.getSpec()
RepositoryConnection.getSpinFunction()
RepositoryConnection.getSpinMagicProperty()
RepositoryConnection.getStatements()
RepositoryConnection.getStatementsById()
RepositoryConnection.getSubjectTriplesCacheSize()
RepositoryConnection.getTransactionSettings()
RepositoryConnection.getUserAttributes()
RepositoryConnection.getValueFactory()
RepositoryConnection.isEmpty()
RepositoryConnection.listEncodedIdPrefixes()
RepositoryConnection.listFreeTextIndices()
RepositoryConnection.listIndices()
RepositoryConnection.listSpinFunctions()
RepositoryConnection.listSpinMagicProperties()
RepositoryConnection.listValidIndices()
RepositoryConnection.loadRules()
RepositoryConnection.materializeEntailed()
RepositoryConnection.modifyFreeTextIndex()
RepositoryConnection.namespace()
RepositoryConnection.openSession()
RepositoryConnection.optimizeIndices()
RepositoryConnection.prepareBooleanQuery()
RepositoryConnection.prepareGraphQuery()
RepositoryConnection.prepareQuery()
RepositoryConnection.prepareTupleQuery()
RepositoryConnection.prepareUpdate()
RepositoryConnection.putSpinFunction()
RepositoryConnection.putSpinMagicProperty()
RepositoryConnection.registerDatatypeMapping()
RepositoryConnection.registerEncodedIdPrefix()
RepositoryConnection.registerEncodedIdPrefixes()
RepositoryConnection.registerNeighborMatrix()
RepositoryConnection.registerSNAGenerator()
RepositoryConnection.remove()
RepositoryConnection.removeNamespace()
RepositoryConnection.removeQuads()
RepositoryConnection.removeQuadsByID()
RepositoryConnection.removeQueryOption()
RepositoryConnection.removeStatement()
RepositoryConnection.removeTriples()
RepositoryConnection.rollback()
RepositoryConnection.runAsUser()
RepositoryConnection.saveResponse()
RepositoryConnection.session()
RepositoryConnection.setAddCommitSize()
RepositoryConnection.setAttributeDefinition()
RepositoryConnection.setAttributeFilter()
RepositoryConnection.setDuplicateSuppressionPolicy()
RepositoryConnection.setGeoType()
RepositoryConnection.setNamespace()
RepositoryConnection.setQueryOption()
RepositoryConnection.setTransactionSettings()
RepositoryConnection.setUserAttributes()
RepositoryConnection.size()
RepositoryConnection.temporaryTransactionSettings()
RepositoryConnection.temporaryUserAttributes()
RepositoryConnection.unregisterEncodedIdPrefix()
RepositoryConnection.warmup()
attribute_definition_from_dict()
dump_json_ld()
- franz.openrdf.repository.repositoryresult module
- franz.openrdf.repository.transactions module
- Module contents
- franz.openrdf.rio package
- franz.openrdf.sail package
- Submodules
- franz.openrdf.sail.allegrographserver module
AllegroGraphServer
AllegroGraphServer.__init__()
AllegroGraphServer.addRole()
AllegroGraphServer.addRoleAccess()
AllegroGraphServer.addRolePermission()
AllegroGraphServer.addRoleSecurityFilter()
AllegroGraphServer.addScript()
AllegroGraphServer.addUser()
AllegroGraphServer.addUserAccess()
AllegroGraphServer.addUserPermission()
AllegroGraphServer.addUserRole()
AllegroGraphServer.addUserSecurityFilter()
AllegroGraphServer.changeUserPassword()
AllegroGraphServer.deleteRole()
AllegroGraphServer.deleteRoleAccess()
AllegroGraphServer.deleteRolePermission()
AllegroGraphServer.deleteRoleSecurityFilter()
AllegroGraphServer.deleteScript()
AllegroGraphServer.deleteUser()
AllegroGraphServer.deleteUserAccess()
AllegroGraphServer.deleteUserData()
AllegroGraphServer.deleteUserPermission()
AllegroGraphServer.deleteUserRole()
AllegroGraphServer.deleteUserSecurityFilter()
AllegroGraphServer.getInitfile()
AllegroGraphServer.getScript()
AllegroGraphServer.getUserData()
AllegroGraphServer.listCatalogs()
AllegroGraphServer.listRoleAccess()
AllegroGraphServer.listRolePermissions()
AllegroGraphServer.listRoleSecurityFilters()
AllegroGraphServer.listRoles()
AllegroGraphServer.listScripts()
AllegroGraphServer.listUserAccess()
AllegroGraphServer.listUserData()
AllegroGraphServer.listUserEffectiveAccess()
AllegroGraphServer.listUserEffectivePermissions()
AllegroGraphServer.listUserPermissions()
AllegroGraphServer.listUserRoles()
AllegroGraphServer.listUserSecurityFilters()
AllegroGraphServer.listUsers()
AllegroGraphServer.openCatalog()
AllegroGraphServer.openFederated()
AllegroGraphServer.openSession()
AllegroGraphServer.setInitfile()
AllegroGraphServer.setUserData()
AllegroGraphServer.url
AllegroGraphServer.version
AllegroGraphServer.versionTuple
Catalog
- franz.openrdf.sail.spec module
- Module contents
- franz.openrdf.util package
- franz.openrdf.vocabulary package
- Module contents
OWL
OWL.ALLDIFFERENT
OWL.ALLVALUESFROM
OWL.ANNOTATIONPROPERTY
OWL.BACKWARDCOMPATIBLEWITH
OWL.CARDINALITY
OWL.CLASS
OWL.COMPLEMENTOF
OWL.DATATYPEPROPERTY
OWL.DEPRECATEDCLASS
OWL.DEPRECATEDPROPERTY
OWL.DIFFERENTFROM
OWL.DISJOINTWITH
OWL.DISTINCTMEMBERS
OWL.EQUIVALENTCLASS
OWL.EQUIVALENTPROPERTY
OWL.FUNCTIONALPROPERTY
OWL.HASVALUE
OWL.IMPORTS
OWL.INCOMPATIBLEWITH
OWL.INDIVIDUAL
OWL.INTERSECTIONOF
OWL.INVERSEFUNCTIONALPROPERTY
OWL.INVERSEOF
OWL.MAXCARDINALITY
OWL.MINCARDINALITY
OWL.NAMESPACE
OWL.OBJECTPROPERTY
OWL.ONEOF
OWL.ONPROPERTY
OWL.ONTOLOGY
OWL.ONTOLOGYPROPERTY
OWL.PRIORVERSION
OWL.RESTRICTION
OWL.SAMEAS
OWL.SOMEVALUESFROM
OWL.SYMMETRICPROPERTY
OWL.TRANSITIVEPROPERTY
OWL.UNIONOF
OWL.VERSIONINFO
RDF
RDFS
XMLSchema
XMLSchema.ANYURI
XMLSchema.BASE64BINARY
XMLSchema.BOOLEAN
XMLSchema.BYTE
XMLSchema.DATE
XMLSchema.DATETIME
XMLSchema.DECIMAL
XMLSchema.DOUBLE
XMLSchema.DURATION
XMLSchema.ENTITIES
XMLSchema.ENTITY
XMLSchema.FLOAT
XMLSchema.GDAY
XMLSchema.GMONTH
XMLSchema.GMONTHDAY
XMLSchema.GYEAR
XMLSchema.GYEARMONTH
XMLSchema.HEXBINARY
XMLSchema.ID
XMLSchema.IDREF
XMLSchema.IDREFS
XMLSchema.INT
XMLSchema.INTEGER
XMLSchema.LANGUAGE
XMLSchema.LONG
XMLSchema.NAME
XMLSchema.NAMESPACE
XMLSchema.NCNAME
XMLSchema.NEGATIVE_INTEGER
XMLSchema.NMTOKEN
XMLSchema.NMTOKENS
XMLSchema.NON_NEGATIVE_INTEGER
XMLSchema.NON_POSITIVE_INTEGER
XMLSchema.NORMALIZEDSTRING
XMLSchema.NOTATION
XMLSchema.NUMBER
XMLSchema.POSITIVE_INTEGER
XMLSchema.QNAME
XMLSchema.SHORT
XMLSchema.STRING
XMLSchema.TIME
XMLSchema.TOKEN
XMLSchema.UNSIGNED_BYTE
XMLSchema.UNSIGNED_INT
XMLSchema.UNSIGNED_LONG
XMLSchema.UNSIGNED_SHORT
- Module contents
Submodules¶
franz.openrdf.connect module¶
Helper function for opening connections.
- franz.openrdf.connect.ag_connect(repo, catalog=None, create=True, fail_if_exists=False, clear=False, session=False, autocommit=False, lifetime=None, loadinitfile=False, host=None, port=None, protocol=None, user=None, password=None, cainfo=None, sslcert=None, verifyhost=None, verifypeer=None, indices=None, proxy=None)¶
Create a connection to an AllegroGraph repository.
When closed the connection will take care of releasing all intermediate resources that were created in order to open it.
- Parameters:
repo (string) – Repository name.
catalog (string) – Catalog name (optional, root catalog is the default).
create (bool) – if True (default) create the repository if it does not exist.
fail_if_exists (bool) – if True and the repository exists raise an exception. This applies only if create is True. The default value is False.
clear (bool) – if True delete all data after creating the connection. The default is False.
session (bool) – If
True
start a session after creating the connection. The default isFalse
.autocommit (bool) – When opening a session: if
True
, commits are done on each request, otherwise you will need to callcommit()
orrollback()
as appropriate for your application. The default value isFalse
.lifetime (int) – Time (in seconds) before the session expires when idle. Note that the client maintains a thread that ping the session before this happens. Ignored if not starting a session.
loadinitfile (bool) – if
True
then the current initfile will be loaded for you when the session starts. The default isFalse
. Ignored if not starting a session.host (string) – AllegroGraph server host (default:
'127.0.0.1'
or the value of the AGRAPH_HOST environment variable if that is defined.` Can also be used to supply protocol and port number (e.g.https://localhost:10036
).protocol (string) – Either
"http"
or"https"
. The default is"http"
. Overrides the protocol specified inhost
.port (int) – AllegroGraph server port (default: 10035 for http and 10036 for https, or the AGRAPH_PORT environment variable if that is defined). Overrides the port number provided in
host
.user (string) – Username for authentication (default: value of the
AGRAPH_USER
environment variable).password (string) – Password for authentication (default: value of the
AGRAPH_PASSWORD
environment variable).cainfo (string) – Path to file or directory with CA certificates.
sslcert (string) – Path to a client certificate to use for authentication instead of username and password.
verifyhost (int) – See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html
verifypeer (int) – See https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html
indices (list[string]) – List of indices to create if creating a new repository.
proxy (string) – Proxy specification string. The format is SCHEME://HOST:PORT. Supported schemes are ‘http’, ‘socks4’ and ‘socks5’. Note that for SOCKS proxies DNS requests are performed by the proxy server. The default value is taken from the AGRAPH_PROXY environment variable.
- Returns:
A
RepositoryConnection
object.- Return type:
franz.openrdf.repositoryconnection.RepositoryConnection
franz.openrdf.exceptions module¶
- exception franz.openrdf.exceptions.IllegalArgumentException¶
Bases:
Exception
- exception franz.openrdf.exceptions.IllegalOptionException¶
Bases:
Exception
- exception franz.openrdf.exceptions.QueryMissingFeatureException¶
Bases:
Exception
Source language evokes a feature not supported by the execution language
- exception franz.openrdf.exceptions.RDFHandlerException¶
Bases:
Exception
- exception franz.openrdf.exceptions.ServerException¶
Bases:
Exception