rdflib の API リファレンス
rdflib (RDFLib/rdflib) の公開 API 318 件 —— クラス 114、関数 77、メソッド 127。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: RDFLib/rdflib
| 種別 | 件数 |
|---|---|
| クラス | 114 |
| 関数 | 77 |
| メソッド | 127 |
API 一覧
method
rdflib.collection.Collection.index(item:Node) -> intReturns the 0-based numerical index of the item in the list
class
rdflib.compare.IsomorphicGraphAn implementation of the RGDA1 graph digest algorithm.
func
rdflib.compare.isomorphic(graph1:Graph, graph2:Graph) -> boolCompare graph for equality.
func
rdflib.compare.similar(g1:Graph, g2:Graph)Checks if the two graphs are "similar".
func
rdflib.compare.to_canonical_graph(g1:Graph, stats:Optional[Stats]=None) -> ReadOnlyGraphAggregateCreates a canonical, read-only graph.
class
rdflib.container.BagUnordered container (no preference order of elements)
method
rdflib.container.Container.append(item)Adding item to the end of the container
method
rdflib.container.Container.clear()Removing all elements from the container
method
rdflib.container.Container.items()Returns a list of all items in the container
class
rdflib.contrib.graphdb.client.ClusterGroupManagementManage and monitor GraphDB cluster configurations.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.add_nodes(nodes:list[str]) -> NoneAdd nodes to the GraphDB cluster.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.add_tag(tag:str) -> NoneAdd primary cluster tag.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.delete_config(force:bool | None=None) -> dict[str, str]Delete the GraphDB cluster.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.delete_tag(tag:str) -> NoneRemove primary cluster tag.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.disable_secondary_mode() -> NoneDisable cluster secondary mode.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.enable_secondary_mode(primary_node:str, tag:str) -> NoneEnable cluster secondary mode.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.get_config() -> ClusterRequestGet the GraphDB cluster configuration.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.group_status() -> list[NodeStatus]Get the status of the GraphDB cluster.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.node_status() -> NodeStatusGet the status of this GraphDB cluster node.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.remove_nodes(nodes:list[str]) -> NoneRemove nodes from the GraphDB cluster.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.replace_nodes(add_nodes:list[str], remove_nodes:list[str]) -> NoneReplace nodes in the GraphDB cluster.
method
rdflib.contrib.graphdb.client.ClusterGroupManagement.truncate_log() -> NoneTruncate the GraphDB cluster log.
class
rdflib.contrib.graphdb.client.MonitoringManagementMonitor different GraphDB processes.
method
rdflib.contrib.graphdb.client.MonitoringManagement.backup() -> BackupOperationBean | NoneTrack backup operations.
method
rdflib.contrib.graphdb.client.MonitoringManagement.cluster() -> strGet cluster statistics.
method
rdflib.contrib.graphdb.client.MonitoringManagement.get_repo_stats(repository_id:str)Get repository statistics.
method
rdflib.contrib.graphdb.client.MonitoringManagement.infrastructure() -> InfrastructureStatisticsGet all infrastructure statistics.
method
rdflib.contrib.graphdb.client.MonitoringManagement.structures() -> StructuresStatisticsGet structures statistics.
class
rdflib.contrib.graphdb.client.RecoveryManagementGraphDB Recovery Management client.
class
rdflib.contrib.graphdb.client.RepositoryGraphDB Repository client.
method
rdflib.contrib.graphdb.client.Repository.cancel_server_import_file(name:str) -> NoneCancel server file import operation.
method
rdflib.contrib.graphdb.client.Repository.get_server_import_files() -> list[ImportSettings]Get server files available for import.
method
rdflib.contrib.graphdb.client.Repository.health(timeout:int=5) -> boolRepository health check.
method
rdflib.contrib.graphdb.client.Repository.import_server_import_file(server_import_body:ServerImportBody) -> NoneImport a server file into the repository.
class
rdflib.contrib.graphdb.client.RepositoryManagementGraphDB Repository Management client.
method
rdflib.contrib.graphdb.client.RepositoryManagement.create(config:RepositoryConfigBeanCreate | str, location:str | None=None, files:FilesType | None=None)Create a new repository.
method
rdflib.contrib.graphdb.client.RepositoryManagement.delete(repository_id:str, location:str | None=None) -> NoneDelete a repository.
method
rdflib.contrib.graphdb.client.RepositoryManagement.edit(repository_id:str, config:RepositoryConfigBeanCreate) -> NoneEdit a repository's configuration.
method
rdflib.contrib.graphdb.client.RepositoryManagement.list(location:str | None=None) -> list[GraphDBRepository]List all repositories.
method
rdflib.contrib.graphdb.client.RepositoryManagement.restart(repository_id:str, sync:bool | None=None, location:str | None=None) -> strRestart a repository.
method
rdflib.contrib.graphdb.client.RepositoryManagement.size(repository_id:str, location:str | None=None) -> RepositorySizeInfoGet repository size.
class
rdflib.contrib.graphdb.client.RepositoryManagerGraphDB Repository Manager.
method
rdflib.contrib.graphdb.client.RepositoryManager.get(repository_id:str) -> RepositoryGet a repository by ID.
class
rdflib.contrib.graphdb.client.SecurityManagementGraphDB Security Management client.
method
rdflib.contrib.graphdb.client.SecurityManagement.enabled() -> boolCheck if security is enabled.
method
rdflib.contrib.graphdb.client.SecurityManagement.set_free_access_details(free_access_settings:FreeAccessSettings)Enable or disable free access.
class
rdflib.contrib.graphdb.client.UserManagementGraphDB User Management client.
method
rdflib.contrib.graphdb.client.UserManagement.create(username:str, user:UserCreate) -> NoneCreate a user.
method
rdflib.contrib.graphdb.client.UserManagement.custom_roles(username:str) -> t.List[str]Retrieve custom roles associated with the user.
method
rdflib.contrib.graphdb.client.UserManagement.delete(username:str) -> NoneDelete a user.
method
rdflib.contrib.graphdb.client.UserManagement.get(username:str) -> UserGet a user.
method
rdflib.contrib.graphdb.client.UserManagement.list() -> list[User]Get all users.
method
rdflib.contrib.graphdb.client.UserManagement.overwrite(username:str, user:User) -> NoneOverwrite a user.
method
rdflib.contrib.graphdb.client.UserManagement.update(username:str, user:UserUpdate | dict[str, t.Any]) -> NoneUpdate a user.
class
rdflib.contrib.graphdb.exceptions.BadRequestErrorRaised when the request is invalid.
class
rdflib.contrib.graphdb.exceptions.ForbiddenErrorRaised when the user is forbidden.
class
rdflib.contrib.graphdb.exceptions.GraphDBErrorBase class for GraphDB exceptions.
class
rdflib.contrib.graphdb.exceptions.InternalServerErrorRaised when the server returns an internal server error.
class
rdflib.contrib.graphdb.exceptions.NotFoundErrorRaised when the resource is not found.
class
rdflib.contrib.graphdb.exceptions.PreconditionFailedErrorRaised when the precondition is failed.
class
rdflib.contrib.graphdb.exceptions.RepositoryNotFoundErrorRaised when the repository is not found.
class
rdflib.contrib.graphdb.exceptions.RepositoryNotHealthyErrorRaised when the repository is not healthy.
class
rdflib.contrib.graphdb.exceptions.ResponseFormatErrorRaised when the response format is invalid.
class
rdflib.contrib.graphdb.exceptions.ServiceUnavailableErrorRaised when the server is unavailable.
class
rdflib.contrib.graphdb.exceptions.UnauthorisedErrorRaised when the user is unauthorised.
method
rdflib.contrib.graphdb.models.NodeStatus.from_dict(data:dict) -> NodeStatusCreate a NodeStatus instance from a dict.
class
rdflib.contrib.graphdb.models.RepositoryStateEnumeration for repository state values.
class
rdflib.contrib.graphdb.models.UserCreateDataclass for creating a new user in GraphDB.
func
rdflib.contrib.graphdb.util.extract_filename_from_content_disposition(header:str) -> str | NoneExtract filename from Content-Disposition header.
class
rdflib.contrib.rdf4j.client.GraphStoreManagerAn RDF4J Graph Store Protocol Client.
method
rdflib.contrib.rdf4j.client.GraphStoreManager.get(graph_name:URIRef | str) -> GraphFetch all statements in the specified graph.
method
rdflib.contrib.rdf4j.client.GraphStoreManager.identifier()Repository identifier.
class
rdflib.contrib.rdf4j.client.NamespaceListingResultRDF4J namespace and prefix name result.
class
rdflib.contrib.rdf4j.client.RDF4JClientRDF4J client.
method
rdflib.contrib.rdf4j.client.RDF4JClient.close()Close the underlying httpx.Client.
method
rdflib.contrib.rdf4j.client.RDF4JClient.protocol() -> floatThe RDF4J REST API protocol version.
method
rdflib.contrib.rdf4j.client.RDF4JClient.repositories() -> RepositoryManagerServer-level repository management operations.
class
rdflib.contrib.rdf4j.client.RDF4JNamespaceManagerA namespace manager for RDF4J repositories.
method
rdflib.contrib.rdf4j.client.RDF4JNamespaceManager.get(prefix:str) -> str | NoneGet the namespace URI for a given prefix.
method
rdflib.contrib.rdf4j.client.RDF4JNamespaceManager.identifier()Repository identifier.
method
rdflib.contrib.rdf4j.client.RDF4JNamespaceManager.remove(prefix:str)Remove the namespace declaration for a given prefix.
method
rdflib.contrib.rdf4j.client.RDF4JNamespaceManager.set(prefix:str, namespace:str)Set the namespace URI for a given prefix.
class
rdflib.contrib.rdf4j.client.RepositoryRDF4J repository client.
method
rdflib.contrib.rdf4j.client.Repository.graph_names() -> list[IdentifiedNode]Get a list of all graph names in the repository.
method
rdflib.contrib.rdf4j.client.Repository.graphs() -> GraphStoreManagerGraph store manager for the repository.
method
rdflib.contrib.rdf4j.client.Repository.health() -> boolRepository health check.
method
rdflib.contrib.rdf4j.client.Repository.identifier()Repository identifier.
method
rdflib.contrib.rdf4j.client.Repository.namespaces() -> RDF4JNamespaceManagerNamespace manager for the repository.
method
rdflib.contrib.rdf4j.client.Repository.query(query:str, **kwargs)Execute a SPARQL query against the repository.
class
rdflib.contrib.rdf4j.client.RepositoryListingResultRDF4J repository listing result.
class
rdflib.contrib.rdf4j.client.RepositoryManagerA client to manage server-level repository operations.
method
rdflib.contrib.rdf4j.client.RepositoryManager.create(repository_id:str, data:str, content_type:str='text/turtle') -> RepositoryCreate a new repository.
method
rdflib.contrib.rdf4j.client.RepositoryManager.delete(repository_id:str) -> NoneDelete a repository.
method
rdflib.contrib.rdf4j.client.RepositoryManager.get(repository_id:str) -> RepositoryGet a repository by ID.
method
rdflib.contrib.rdf4j.client.RepositoryManager.list() -> list[RepositoryListingResult]List all available repositories.
class
rdflib.contrib.rdf4j.client.TransactionAn RDF4J transaction.
method
rdflib.contrib.rdf4j.client.Transaction.commit()Commit the transaction.
method
rdflib.contrib.rdf4j.client.Transaction.create(repo:Repository) -> TransactionCreate a new transaction for the repository.
method
rdflib.contrib.rdf4j.client.Transaction.delete(data:str | bytes | BinaryIO | Graph | Dataset, base_uri:str | None=None, content_type:str | None=None) -> NoneDelete statements from the repository.
method
rdflib.contrib.rdf4j.client.Transaction.is_closed() -> boolWhether the transaction is closed.
method
rdflib.contrib.rdf4j.client.Transaction.ping()Ping the transaction.
method
rdflib.contrib.rdf4j.client.Transaction.query(query:str, **kwargs)Execute a SPARQL query against the repository.
method
rdflib.contrib.rdf4j.client.Transaction.repo()The repository instance.
method
rdflib.contrib.rdf4j.client.Transaction.rollback()Roll back the transaction.
method
rdflib.contrib.rdf4j.client.Transaction.url()The transaction URL.
class
rdflib.contrib.rdf4j.exceptions.RDF4JErrorBase class for RDF4J exceptions.
class
rdflib.contrib.rdf4j.exceptions.RDFLibParserErrorRaised when there is an error parsing the RDF document.
class
rdflib.contrib.rdf4j.exceptions.RepositoryAlreadyExistsErrorRaised when the repository already exists.
class
rdflib.contrib.rdf4j.exceptions.RepositoryErrorRaised when interactions on a repository result in an error.
class
rdflib.contrib.rdf4j.exceptions.RepositoryNotFoundErrorRaised when the repository is not found.
class
rdflib.contrib.rdf4j.exceptions.RepositoryNotHealthyErrorRaised when the repository is not healthy.
class
rdflib.contrib.rdf4j.exceptions.RepositoryResponseFormatErrorRaised when the repository response format is invalid.
class
rdflib.contrib.rdf4j.exceptions.RepositoryTransactionErrorRaised when there is an error with the transaction.
class
rdflib.contrib.rdf4j.exceptions.TransactionClosedErrorRaised when the transaction has been closed.
class
rdflib.contrib.rdf4j.exceptions.TransactionCommitErrorRaised when there is an error committing the transaction.
class
rdflib.contrib.rdf4j.exceptions.TransactionPingErrorRaised when there is an error pinging the transaction.
func
rdflib.contrib.rdf4j.util.build_infer_param(params:dict[str, str], infer:bool=True) -> NoneBuild the RDF4J http infer query parameters dictionary.
func
rdflib.contrib.rdf4j.util.build_sparql_query_accept_header(query:str, headers:dict[str, str])Build the SPARQL query accept header.
func
rdflib.contrib.rdf4j.util.rdf_payload_to_stream(data:str | bytes | t.BinaryIO | Graph | Dataset) -> tuple[t.BinaryIO, bool]Convert an RDF payload into a file-like object.
class
rdflib.events.EventAn event is a container for attributes.
class
rdflib.exceptions.ErrorBase class for rdflib exceptions.
class
rdflib.exceptions.ParserErrorRDF Parser error.
class
rdflib.extras.infixowl.IndividualA typed individual, the base class of the InfixOWL classes.
class
rdflib.extras.infixowl.MalformedClass!!!
class
rdflib.extras.infixowl.OntologyThe owl ontology metadata
func
rdflib.extras.shacl.parse_shacl_path(shapes_graph:Graph, path_identifier:Node) -> Union[URIRef, Path]Parse a valid SHACL path (e.g.
method
rdflib.graph.Dataset.add_graph(g:Optional[Union[_ContextIdentifierType, _ContextType, str]]) -> Graphalias of graph for consistency
method
rdflib.graph.Graph.absolutize(uri:str, defrag:int=1) -> URIRefTurn uri into an absolute URI if it's not one already
method
rdflib.graph.Graph.add(triple:_TripleType) -> _GraphTAdd a triple with self as context.
method
rdflib.graph.Graph.addN(quads:Iterable[_QuadType]) -> _GraphTAdd a sequence of triple with context
method
rdflib.graph.Graph.collection(identifier:_SubjectType) -> CollectionCreate a new `Collection` instance.
method
rdflib.graph.Graph.commit() -> _GraphTCommits active transactions
method
rdflib.graph.Graph.connected() -> boolCheck if the Graph is connected.
method
rdflib.graph.Graph.destroy(configuration:str) -> _GraphTDestroy the store identified by `configuration` if supported
method
rdflib.graph.Graph.isomorphic(other:Graph) -> boolCheck if this graph is isomorphic to another graph.
method
rdflib.graph.Graph.n3(namespace_manager:Optional[NamespaceManager]=None) -> strReturn an n3 identifier for the Graph
method
rdflib.graph.Graph.namespace_manager() -> NamespaceManagerthis graph's namespace-manager
method
rdflib.graph.Graph.resource(identifier:Union[Node, str]) -> ResourceCreate a new ``Resource`` instance.
method
rdflib.graph.Graph.rollback() -> _GraphTRollback active transactions
class
rdflib.graph.QuotedGraphQuoted Graphs are intended to implement Notation 3 formulae.
method
rdflib.graph.QuotedGraph.add(triple:_TripleType) -> _GraphTAdd a triple with self as context
method
rdflib.graph.QuotedGraph.addN(quads:Iterable[_QuadType]) -> _GraphTAdd a sequence of triple with context
method
rdflib.graph.QuotedGraph.n3(namespace_manager:Optional[NamespaceManager]=None) -> strReturn an n3 identifier for the Graph
class
rdflib.namespace.DefinedNamespaceA Namespace with an enumerated list of members.
method
rdflib.namespace.DefinedNamespaceMeta.as_jsonld_context(pfx:str) -> dictReturns this DefinedNamespace as a JSON-LD 'context' object
class
rdflib.namespace.URIPatternUtility class for creating URIs according to some pattern.
class
rdflib.namespace._BRICK.BRICKBrick Ontology classes, properties and entity properties.
class
rdflib.namespace._QB.QBVocabulary for multi-dimensional (e.g.
method
rdflib.parser.BytesIOWrapper.read(size:Optional[int]=-1) -> bytesRead at most size bytes, returned as a bytes object.
method
rdflib.parser.BytesIOWrapper.readinto(b:Buffer) -> intRead len(b) bytes into buffer b.
class
rdflib.parser.InputSourceTODO:
class
rdflib.paths.PathBase class for all property paths.
func
rdflib.paths.inv_path(p:Union[URIRef, Path]) -> InvPathinverse path
func
rdflib.paths.mul_path(p:Union[URIRef, Path], mul:_MulPathMod) -> MulPathcardinality path
func
rdflib.paths.neg_path(p:Union[URIRef, AlternativePath, InvPath]) -> NegatedPathnegated path
func
rdflib.paths.path_alternative(self:Union[URIRef, Path], other:Union[URIRef, Path])alternative path
func
rdflib.paths.path_sequence(self:Union[URIRef, Path], other:Union[URIRef, Path])sequence path
func
rdflib.plugin.get(name:str, kind:Type[PluginT]) -> Type[PluginT]Return the class for the specified (name, kind).
func
rdflib.plugin.register(name:str, kind:Type[Any], module_path, class_name)Register the plugin for (name, kind).
class
rdflib.plugins.parsers.hext.HextuplesParserAn RDFLib parser for Hextuples
func
rdflib.plugins.parsers.notation3.runNamespace() -> strReturns a URI suitable as a namespace for run-local objects
class
rdflib.plugins.parsers.notation3.sfloatdon't normalize raw XSD.double string representation
func
rdflib.plugins.parsers.notation3.splitFragP(uriref:str, punc:int=0) -> Tuple[str, str]Split a URI reference before the fragment Punctuation is kept.
func
rdflib.plugins.parsers.notation3.uniqueURI() -> strA unique URI
class
rdflib.plugins.parsers.ntriples.W3CNTriplesParserAn N-Triples Parser.
method
rdflib.plugins.parsers.ntriples.W3CNTriplesParser.parse(f:Union[TextIO, IO[bytes], codecs.StreamReader], bnode_context:Optional[_BNodeContextType]=None, skolemize:bool=False) -> Union[DummySink, NTGraphSink]Parse f as an N-Triples file.
method
rdflib.plugins.parsers.ntriples.W3CNTriplesParser.parsestring(s:Union[bytes, bytearray, str], **kwargs) -> NoneParse s as an N-Triples string.
method
rdflib.plugins.parsers.ntriples.W3CNTriplesParser.readline() -> Optional[str]Read an N-Triples line from buffered input.
func
rdflib.plugins.parsers.ntriples.unquote(s:str) -> strUnquote an N-Triples string.
class
rdflib.plugins.parsers.patch.OperationEnum of RDF Patch operations.
class
rdflib.plugins.parsers.rdfxml.RDFXMLParserAn RDF/XML parser.
class
rdflib.plugins.parsers.trig.TrigParserAn RDFLib parser for TriG
class
rdflib.plugins.parsers.trix.TriXHandlerAn Sax Handler for TriX.
class
rdflib.plugins.parsers.trix.TriXParserA parser for TriX.
class
rdflib.plugins.serializers.hext.HextuplesSerializerSerializes RDF graphs to NTriples format.
class
rdflib.plugins.serializers.jsonld.JsonLDSerializerJSON-LD RDF graph serializer.
class
rdflib.plugins.serializers.longturtle.LongTurtleSerializerLongTurtle, a Turtle serialization format.
class
rdflib.plugins.serializers.n3.N3SerializerNotation 3 (N3) RDF graph serializer.
class
rdflib.plugins.serializers.nquads.NQuadsSerializerNQuads RDF graph serializer.
class
rdflib.plugins.serializers.nt.NT11SerializerSerializes RDF graphs to RDF 1.1 NTriples format.
class
rdflib.plugins.serializers.nt.NTSerializerSerializes RDF graphs to NTriples format.
method
rdflib.plugins.serializers.patch.PatchSerializer.serialize(stream:IO[bytes], base:Optional[str]=None, encoding:Optional[str]=None, **kwargs:Any) -> NoneSerialize the store to the given stream.
class
rdflib.plugins.serializers.rdfxml.PrettyXMLSerializerPretty RDF/XML RDF graph serializer.
class
rdflib.plugins.serializers.rdfxml.XMLSerializerRDF/XML RDF graph serializer.
func
rdflib.plugins.serializers.rdfxml.fix(val:str) -> strstrip off _: from nodeIDs...
class
rdflib.plugins.serializers.trig.TrigSerializerTriG RDF graph serializer.
class
rdflib.plugins.serializers.trix.TriXSerializerTriX RDF graph serializer.
class
rdflib.plugins.serializers.turtle.RecursiveSerializerBase class for recursive serializers.
method
rdflib.plugins.serializers.turtle.RecursiveSerializer.checkSubject(subject:_SubjectType) -> boolCheck to see if the subject should be serialized yet
method
rdflib.plugins.serializers.turtle.RecursiveSerializer.indent(modifier:int=0) -> strReturns indent string multiplied by the depth
method
rdflib.plugins.serializers.turtle.RecursiveSerializer.isDone(subject:_SubjectType) -> boolReturn true if subject is serialized
method
rdflib.plugins.serializers.turtle.RecursiveSerializer.subjectDone(subject:_SubjectType) -> NoneMark a subject as done.
method
rdflib.plugins.serializers.turtle.RecursiveSerializer.write(text:str) -> NoneWrite text in given encoding.
class
rdflib.plugins.serializers.turtle.TurtleSerializerTurtle RDF graph serializer.
method
rdflib.plugins.serializers.turtle.TurtleSerializer.isValidList(l_:Node) -> boolChecks if l is a valid RDF list, i.e.
class
rdflib.plugins.serializers.xmlwriter.XMLWriterA simple XML writer that writes to a stream.
method
rdflib.plugins.serializers.xmlwriter.XMLWriter.element(uri:str, content:str, attributes:Dict[URIRef, str]={}) -> NoneUtility method for adding a complete simple element
class
rdflib.plugins.sparql.aggregates.Accumulatorabstract base class for different aggregation functions
method
rdflib.plugins.sparql.aggregates.Accumulator.dont_care(row:FrozenBindings) -> boolskips distinct test
method
rdflib.plugins.sparql.aggregates.Accumulator.set_value(bindings:MutableMapping[Variable, Identifier]) -> Nonesets final value in bindings
method
rdflib.plugins.sparql.aggregates.Accumulator.use_row(row:FrozenBindings) -> booltests distinct with set
class
rdflib.plugins.sparql.aggregates.Aggregatorcombines different Accumulator objects
method
rdflib.plugins.sparql.aggregates.Aggregator.get_bindings() -> Mapping[Variable, Identifier]calculate and set last values
method
rdflib.plugins.sparql.aggregates.Aggregator.update(row:FrozenBindings) -> Noneupdate all own accumulators
class
rdflib.plugins.sparql.aggregates.Extremumabstract base class for Minimum and Maximum
class
rdflib.plugins.sparql.aggregates.Sampletakes the first eligible value
func
rdflib.plugins.sparql.algebra.analyse(n:Any, children:Any) -> boolSome things can be lazily joined.
func
rdflib.plugins.sparql.algebra.simplify(n:Any) -> Optional[CompValue]Remove joins to empty BGPs
func
rdflib.plugins.sparql.algebra.translate(q:CompValue) -> Tuple[Optional[CompValue], List[Variable]]http://www.w3.org/TR/sparql11-query/#convertSolMod
func
rdflib.plugins.sparql.algebra.translateGroupGraphPattern(graphPattern:CompValue) -> CompValuehttp://www.w3.org/TR/sparql11-query/#convertGraphPattern
func
rdflib.plugins.sparql.algebra.translatePName(p:typing.Union[CompValue, str], prologue:Prologue) -> Optional[Identifier]Expand prefixed/relative URIs
func
rdflib.plugins.sparql.algebra.translateUpdate(q:CompValue, base:Optional[str]=None, initNs:Optional[Mapping[str, Any]]=None) -> UpdateReturns a list of SPARQL Update Algebra expressions
func
rdflib.plugins.sparql.evaluate.evalBGP(ctx:QueryContext, bgp:List[_Triple]) -> Generator[FrozenBindings, None, None]A basic graph pattern
func
rdflib.plugins.sparql.evaluate.evalQuery(graph:Graph, query:Query, initBindings:Optional[Mapping[str, Identifier]]=None, base:Optional[str]=None) -> Mapping[Any, Any]Evaluate a SPARQL query against a graph.
func
rdflib.plugins.sparql.operators.Builtin_ABS(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-abs
func
rdflib.plugins.sparql.operators.Builtin_BNODE(expr, ctx) -> BNodehttp://www.w3.org/TR/sparql11-query/#func-bnode
func
rdflib.plugins.sparql.operators.Builtin_BOUND(e:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-bound
func
rdflib.plugins.sparql.operators.Builtin_CEIL(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-ceil
func
rdflib.plugins.sparql.operators.Builtin_CONCAT(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-concat
func
rdflib.plugins.sparql.operators.Builtin_CONTAINS(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strcontains
func
rdflib.plugins.sparql.operators.Builtin_FLOOR(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-floor
func
rdflib.plugins.sparql.operators.Builtin_IF(expr:Expr, ctx)http://www.w3.org/TR/sparql11-query/#func-if
func
rdflib.plugins.sparql.operators.Builtin_IRI(expr:Expr, ctx:FrozenBindings) -> URIRefhttp://www.w3.org/TR/sparql11-query/#func-iri
func
rdflib.plugins.sparql.operators.Builtin_LANGMATCHES(e:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-langMatches
func
rdflib.plugins.sparql.operators.Builtin_NOW(e:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-now
func
rdflib.plugins.sparql.operators.Builtin_RAND(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#idp2133952
func
rdflib.plugins.sparql.operators.Builtin_REPLACE(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-substr
func
rdflib.plugins.sparql.operators.Builtin_ROUND(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-round
func
rdflib.plugins.sparql.operators.Builtin_SECONDS(e:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-seconds
func
rdflib.plugins.sparql.operators.Builtin_STRAFTER(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strafter
func
rdflib.plugins.sparql.operators.Builtin_STRBEFORE(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strbefore
func
rdflib.plugins.sparql.operators.Builtin_STRDT(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strdt
func
rdflib.plugins.sparql.operators.Builtin_STRENDS(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strends
func
rdflib.plugins.sparql.operators.Builtin_STRLANG(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strlang
func
rdflib.plugins.sparql.operators.Builtin_STRSTARTS(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strstarts
func
rdflib.plugins.sparql.operators.Builtin_STRUUID(expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-strdt
func
rdflib.plugins.sparql.operators.Builtin_SUBSTR(expr:Expr, ctx) -> Literalhttp://www.w3.org/TR/sparql11-query/#func-substr
func
rdflib.plugins.sparql.operators.Builtin_UUID(expr:Expr, ctx) -> URIRefhttp://www.w3.org/TR/sparql11-query/#func-strdt
func
rdflib.plugins.sparql.operators.Function(e:Expr, ctx:FrozenBindings) -> NodeCustom functions and casts
func
rdflib.plugins.sparql.operators.register_custom_function(uri:URIRef, func:_CustomFunction, override:bool=False, raw:bool=False) -> NoneRegister a custom SPARQL function.
func
rdflib.plugins.sparql.operators.string(s:Literal) -> LiteralMake sure the passed thing is a string literal i.e.
func
rdflib.plugins.sparql.parser.expandBNodeTriples(terms:ParseResults) -> List[Any]expand [ ?p ?o ] syntax for implicit bnodes
func
rdflib.plugins.sparql.parser.expandCollection(terms:ParseResults) -> List[List[Any]]expand ( 1 2 3 ) notation for collections
func
rdflib.plugins.sparql.parser.expandTriples(terms:ParseResults) -> List[Any]Expand ; and , syntax for repeat predicates, subjects
class
rdflib.plugins.sparql.parserutils.ExprA CompValue that is evaluatable
class
rdflib.plugins.sparql.parserutils.ParamListA shortcut for a Param with isList=True
func
rdflib.plugins.sparql.parserutils.value(ctx:FrozenBindings, val:Any, variables:bool=False, errors:bool=False) -> AnyUtility function for evaluating something...
func
rdflib.plugins.sparql.processor.prepareQuery(queryString:str, initNs:Optional[Mapping[str, Any]]=None, base:Optional[str]=None) -> QueryParse and translate a SPARQL Query
func
rdflib.plugins.sparql.processor.prepareUpdate(updateString:str, initNs:Optional[Mapping[str, Any]]=None, base:Optional[str]=None) -> UpdateParse and translate a SPARQL Update
class
rdflib.plugins.sparql.results.csvresults.CSVResultParserParses SPARQL CSV results into a Result object.
class
rdflib.plugins.sparql.results.csvresults.CSVResultSerializerSerializes SPARQL results into CSV format.
class
rdflib.plugins.sparql.results.jsonresults.JSONResultParserParses SPARQL JSON results into a Result object.
class
rdflib.plugins.sparql.results.jsonresults.JSONResultSerializerSerializes SPARQL results to JSON format.
class
rdflib.plugins.sparql.results.tsvresults.TSVResultParserParses SPARQL TSV results into a Result object.
class
rdflib.plugins.sparql.results.xmlresults.SPARQLXMLWriterPython saxutils-based SPARQL XML Writer
class
rdflib.plugins.sparql.results.xmlresults.XMLResultParserA Parser for SPARQL results in XML.
class
rdflib.plugins.sparql.results.xmlresults.XMLResultSerializerSerializes SPARQL results into XML format.
class
rdflib.plugins.sparql.sparql.AlreadyBoundRaised when trying to bind a variable that is already bound!
class
rdflib.plugins.sparql.sparql.BindingsA single level of a stack of variable-value bindings.
class
rdflib.plugins.sparql.sparql.QueryA parsed and translated query
class
rdflib.plugins.sparql.sparql.QueryContextQuery context - passed along when evaluating the query
method
rdflib.plugins.sparql.sparql.QueryContext.dataset() -> ConjunctiveGraph"current dataset
method
rdflib.plugins.sparql.sparql.QueryContext.load(source:URIRef, default:bool=False, into:Optional[Identifier]=None, **kwargs:Any) -> NoneLoad data from the source into the query context's.
class
rdflib.plugins.sparql.sparql.UpdateA parsed and translated update
func
rdflib.plugins.sparql.update.evalClear(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#clear
func
rdflib.plugins.sparql.update.evalCreate(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#create
func
rdflib.plugins.sparql.update.evalDeleteData(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#deleteData
func
rdflib.plugins.sparql.update.evalDeleteWhere(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#deleteWhere
func
rdflib.plugins.sparql.update.evalDrop(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#drop
func
rdflib.plugins.sparql.update.evalInsertData(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#insertData
func
rdflib.plugins.sparql.update.evalLoad(ctx:QueryContext, u:CompValue) -> Nonehttp://www.w3.org/TR/sparql11-update/#load
func
rdflib.plugins.stores.berkeleydb.from_key(key:bytes) -> Tuple[bytes, bytes, bytes, bytes]Takes a key; returns string
func
rdflib.plugins.stores.berkeleydb.to_key(triple:Tuple[bytes, bytes, bytes], context:bytes) -> bytesTakes a string; returns key
class
rdflib.plugins.stores.concurrent.ConcurrentStoreA store that allows concurrent reads and writes.
class
rdflib.plugins.stores.memory.MemoryAn in memory implementation of a triple store.
method
rdflib.plugins.stores.memory.Memory.add(triple:_TripleType, context:_ContextType, quoted:bool=False) -> NoneAdd a triple to the store of triples.
class
rdflib.plugins.stores.memory.SimpleMemoryA fast naive in memory implementation of a triple store.
method
rdflib.plugins.stores.memory.SimpleMemory.add(triple:_TripleType, context:_ContextType, quoted:bool=False) -> NoneAdd a triple to the store of triples.
class
rdflib.plugins.stores.rdf4j.RDF4JStoreAn RDF4J store.
class
rdflib.query.EncodeOnlyUnicodeThis is a crappy work-around for http://bugs.python.org/issue11649
class
rdflib.query.ProcessorQuery plugin interface.
class
rdflib.query.ResultA common class for representing query result.
method
rdflib.query.Result.bindings() -> MutableSequence[Mapping[Variable, Identifier]]a list of variable bindings as dicts
method
rdflib.query.Result.parse(source:Optional[IO]=None, format:Optional[str]=None, content_type:Optional[str]=None, **kwargs:Any) -> ResultParse a query result from a source.
method
rdflib.query.Result.serialize(destination:Optional[Union[str, IO]]=None, encoding:str='utf-8', format:str='xml', **args:Any) -> Optional[bytes]Serialize the query result.
class
rdflib.query.UpdateProcessorUpdate plugin interface.
class
rdflib.resource.ResourceA Resource is a wrapper for a graph and a resource identifier.
class
rdflib.serializer.SerializerBase class for RDF Serializer.
method
rdflib.serializer.Serializer.serialize(stream:IO[bytes], base:Optional[str]=None, encoding:Optional[str]=None, **args:Any) -> NoneAbstract method.
method
rdflib.store.Store.add(triple:_TripleType, context:_ContextType, quoted:bool=False) -> NoneAdds the given statement to a specific context or to the model.
method
rdflib.store.Store.addN(quads:Iterable[_QuadType]) -> NoneAdds each item in the list of statements to a specific context.
method
rdflib.store.Store.add_graph(graph:Graph) -> NoneAdd a graph to the store, no effect if the graph already exists.
method
rdflib.store.Store.bind(prefix:str, namespace:URIRef, override:bool=True) -> NoneBind a namespace to a prefix.
method
rdflib.store.Store.close(commit_pending_transaction:bool=False) -> NoneCloses the database connection.
method
rdflib.store.Store.contexts(triple:Optional[_TripleType]=None) -> Generator[_ContextType, None, None]Generator over all contexts in the graph.
method
rdflib.store.Store.destroy(configuration:str) -> NoneDestroys the instance of the store.
method
rdflib.store.Store.gc() -> NoneAllows the store to perform any needed garbage collection.
method
rdflib.store.Store.open(configuration:Union[str, tuple[str, str]], create:bool=False) -> Optional[int]Opens the store specified by the configuration string.
method
rdflib.store.Store.remove(triple:_TriplePatternType, context:Optional[_ContextType]=None) -> NoneRemove the set of triples matching the pattern from the store
class
rdflib.store.StoreCreatedEventThis event is fired when the Store is created.
class
rdflib.store.TripleAddedEventThis event is fired when a triple is added.
class
rdflib.store.TripleRemovedEventThis event is fired when a triple is removed.
class
rdflib.term.IdentifiedNodeAn abstract class, primarily defined to identify Nodes that are not Literals.
class
rdflib.term.IdentifierSee http://www.w3.org/2002/07/rdf-identifer-terminology/ regarding choice of terminology.
method
rdflib.term.Identifier.eq(other:Any) -> boolA "semantic"/interpreted equality function, by default, same as __eq__
method
rdflib.term.Identifier.neq(other:Any) -> boolA "semantic"/interpreted not equal function, by default, same as __ne__
method
rdflib.term.Literal.eq(other:Any) -> boolCompare the value of this literal with something else.
method
rdflib.term.Literal.n3(namespace_manager:Optional[NamespaceManager]=None) -> strReturns a representation in the N3 format.
class
rdflib.term.NodeA Node in the Graph.
class
rdflib.term.URIRef[RDF 1.1's IRI Section](https://www.w3.org/TR/rdf11-concepts/#section-IRIs) !!!
func
rdflib.util.find_roots(graph:Graph, prop:rdflib.term.URIRef, roots:Optional[Set[rdflib.term.Node]]=None) -> Set[rdflib.term.Node]Find the roots in some sort of transitive hierarchy.
func
rdflib.util.guess_format(fpath:str, fmap:Optional[Dict[str, str]]=None) -> Optional[str]Guess RDF serialization based on file suffix.
func
rdflib.util.list2set(seq:Iterable[_HashableT]) -> List[_HashableT]Return a new list without duplicates.
func
rdflib.util.more_than(sequence:Iterable[Any], number:int) -> intReturns 1 if sequence has more items than number and 0 if not.
func
rdflib.util.uniq(sequence:Iterable[str], strip:int=0) -> Set[str]removes duplicate strings from the sequence.
class
rdflib.xsd_datetime.DurationA class which represents a duration.
func
rdflib.xsd_datetime.fquotmod(val:Decimal, low:Union[Decimal, int], high:Union[Decimal, int]) -> Tuple[int, Decimal]A divmod function with boundaries.
func
rdflib.xsd_datetime.max_days_in_month(year:int, month:int) -> intDetermines the number of days of a specific month in a specific year.
この情報について
掲載しているシグネチャは RDFLib/rdflib の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。