franz.openrdf package¶
Subpackages¶
- franz.openrdf.model package
- Submodules
- franz.openrdf.model.utils module
- Module contents
BNodeLiteralLiteral.__init__()Literal.booleanValue()Literal.calendarValue()Literal.datatypeLiteral.dateValue()Literal.datetimeValue()Literal.decimalValue()Literal.floatValue()Literal.getDatatype()Literal.getLabel()Literal.getLanguage()Literal.getValue()Literal.get_cmp_key()Literal.intValue()Literal.labelLiteral.languageLiteral.longValue()Literal.setDatatype()Literal.setLabel()Literal.setLanguage()Literal.timeValue()Literal.toNTriples()Literal.toPython()Literal.to_json_ld()
QuotedTripleStatementStatement.__init__()Statement.contextStatement.getContext()Statement.getObject()Statement.getPredicate()Statement.getSubject()Statement.getTripleID()Statement.idStatement.objectStatement.predicateStatement.setContext()Statement.setObject()Statement.setPredicate()Statement.setSubject()Statement.subject
URIValueValueFactoryValueFactory.BLANK_NODE_AMOUNTValueFactory.__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
RepositoryRepository.ACCESSRepository.CREATERepository.OPENRepository.RENEWRepository.REPLACERepository.__init__()Repository.bulk_modeRepository.getConnection()Repository.getDatabaseName()Repository.getSpec()Repository.getValueFactory()Repository.initialize()Repository.isWritable()Repository.registerDatatypeMapping()Repository.shutDown()
- franz.openrdf.repository.repositoryconnection module
DocumentKeyGeoTypePrefixFormatRepositoryConnectionRepositoryConnection.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_sizeRepositoryConnection.add_objects()RepositoryConnection.allocateEncodedIds()RepositoryConnection.callStoredProc()RepositoryConnection.clear()RepositoryConnection.clearAttributeFilter()RepositoryConnection.clearNamespaces()RepositoryConnection.clearQueryOptions()RepositoryConnection.close()RepositoryConnection.closeSession()RepositoryConnection.commit()RepositoryConnection.convert_to_vector_store()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.nearest_neighbor()RepositoryConnection.object_embedding()RepositoryConnection.object_property_value()RepositoryConnection.object_text()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.remove_objects()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
AllegroGraphServerAllegroGraphServer.__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.urlAllegroGraphServer.versionAllegroGraphServer.versionTuple
Catalog
- franz.openrdf.sail.spec module
- Module contents
- franz.openrdf.util package
- franz.openrdf.vocabulary package
- Module contents
OWLOWL.ALLDIFFERENTOWL.ALLVALUESFROMOWL.ANNOTATIONPROPERTYOWL.BACKWARDCOMPATIBLEWITHOWL.CARDINALITYOWL.CLASSOWL.COMPLEMENTOFOWL.DATATYPEPROPERTYOWL.DEPRECATEDCLASSOWL.DEPRECATEDPROPERTYOWL.DIFFERENTFROMOWL.DISJOINTWITHOWL.DISTINCTMEMBERSOWL.EQUIVALENTCLASSOWL.EQUIVALENTPROPERTYOWL.FUNCTIONALPROPERTYOWL.HASVALUEOWL.IMPORTSOWL.INCOMPATIBLEWITHOWL.INDIVIDUALOWL.INTERSECTIONOFOWL.INVERSEFUNCTIONALPROPERTYOWL.INVERSEOFOWL.MAXCARDINALITYOWL.MINCARDINALITYOWL.NAMESPACEOWL.OBJECTPROPERTYOWL.ONEOFOWL.ONPROPERTYOWL.ONTOLOGYOWL.ONTOLOGYPROPERTYOWL.PRIORVERSIONOWL.RESTRICTIONOWL.SAMEASOWL.SOMEVALUESFROMOWL.SYMMETRICPROPERTYOWL.TRANSITIVEPROPERTYOWL.UNIONOFOWL.VERSIONINFO
RDFRDFSXMLSchemaXMLSchema.ANYURIXMLSchema.BASE64BINARYXMLSchema.BOOLEANXMLSchema.BYTEXMLSchema.DATEXMLSchema.DATETIMEXMLSchema.DECIMALXMLSchema.DOUBLEXMLSchema.DURATIONXMLSchema.ENTITIESXMLSchema.ENTITYXMLSchema.FLOATXMLSchema.GDAYXMLSchema.GMONTHXMLSchema.GMONTHDAYXMLSchema.GYEARXMLSchema.GYEARMONTHXMLSchema.HEXBINARYXMLSchema.IDXMLSchema.IDREFXMLSchema.IDREFSXMLSchema.INTXMLSchema.INTEGERXMLSchema.LANGUAGEXMLSchema.LONGXMLSchema.NAMEXMLSchema.NAMESPACEXMLSchema.NCNAMEXMLSchema.NEGATIVE_INTEGERXMLSchema.NMTOKENXMLSchema.NMTOKENSXMLSchema.NON_NEGATIVE_INTEGERXMLSchema.NON_POSITIVE_INTEGERXMLSchema.NORMALIZEDSTRINGXMLSchema.NOTATIONXMLSchema.NUMBERXMLSchema.POSITIVE_INTEGERXMLSchema.QNAMEXMLSchema.SHORTXMLSchema.STRINGXMLSchema.TIMEXMLSchema.TOKENXMLSchema.UNSIGNED_BYTEXMLSchema.UNSIGNED_INTXMLSchema.UNSIGNED_LONGXMLSchema.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, vector_store=False, embedder=None, api_key=None, model=None, dimensions=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
Truestart 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
Truethen 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_USERenvironment variable).password (string) – Password for authentication (default: value of the
AGRAPH_PASSWORDenvironment 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.
vector_store – True to create a vector store
:type vector_store:bool :param embedder: name of service to create embeddings :type embedder: string :param api_key: embedding service api key if required :type api_key: string :param model: name of embedding model (default varies by embedder) :type model: string :param dimensions: size of the embedding vector :type dimensions: integer
- Returns:
A
RepositoryConnectionobject.- 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:
ExceptionSource language evokes a feature not supported by the execution language
- exception franz.openrdf.exceptions.RDFHandlerException¶
Bases:
Exception
- exception franz.openrdf.exceptions.ServerException¶
Bases:
Exception