@@ -476,30 +476,40 @@ class Graph(Node):
476476
477477 ```
478478
479- !!! info "Graph stores"
480- The constructor accepts one argument, the "store" that will be used to store the
481- graph data with the default being the [`Memory`][rdflib.plugins.stores.memory.Memory]
482- (in memory) Store. Other Stores that persist content to disk using various file
483- databases or Stores that use remote servers (SPARQL systems) are supported. See
484- the `rdflib.plugins.stores` package for Stores currently shipped with RDFLib.
485- Other Stores not shipped with RDFLib can be added, such as
486- [HDT](https://github.com/rdflib/rdflib-hdt/).
487-
488- Stores can be context-aware or unaware. Unaware stores take up
489- (some) less space but cannot support features that require
490- context, such as true merging/demerging of sub-graphs and
491- provenance.
492-
493- Even if used with a context-aware store, Graph will only expose the quads which
494- belong to the default graph. To access the rest of the data the
495- `Dataset` class can be used instead.
496-
497- The Graph constructor can take an identifier which identifies the Graph
498- by name. If none is given, the graph is assigned a BNode for its
499- identifier.
500-
501- For more on Named Graphs, see the RDFLib `Dataset` class and the TriG Specification,
502- <https://www.w3.org/TR/trig/>.
479+
480+ Args:
481+ store: The constructor accepts one argument, the "store" that will be used to store the
482+ graph data with the default being the [`Memory`][rdflib.plugins.stores.memory.Memory]
483+ (in memory) Store. Other Stores that persist content to disk using various file
484+ databases or Stores that use remote servers (SPARQL systems) are supported.
485+ All [builtin storetypes][rdflib.plugins.stores] can be accessed via
486+ their registered names.
487+ Other Stores not shipped with RDFLib can be added as plugins, such as
488+ [HDT](https://github.com/rdflib/rdflib-hdt/).
489+ Registration of external plugins
490+ is described in [`rdflib.plugin`][rdflib.plugin].
491+
492+ Stores can be context-aware or unaware. Unaware stores take up
493+ (some) less space but cannot support features that require
494+ context, such as true merging/demerging of sub-graphs and
495+ provenance.
496+
497+ Even if used with a context-aware store, Graph will only expose the quads which
498+ belong to the default graph. To access the rest of the data the
499+ `Dataset` class can be used instead.
500+
501+ The Graph constructor can take an identifier which identifies the Graph
502+ by name. If none is given, the graph is assigned a BNode for its
503+ identifier.
504+
505+ For more on Named Graphs, see the RDFLib `Dataset` class and the TriG Specification,
506+ <https://www.w3.org/TR/trig/>.
507+ identifier: identifier of the graph itself
508+ namespace_manager: Used namespace manager.
509+ Create with bind_namespaces if `None`.
510+ base: Base used for [URIs][rdflib.term.URIRef]
511+ bind_namespaces: Used bind_namespaces for namespace_manager
512+ Is only used, when no namespace_manager is provided.
503513 """
504514
505515 context_aware : bool
@@ -1450,9 +1460,11 @@ def serialize(
14501460 string or pathlib.PurePath object, or it can be an IO[bytes] like object.
14511461 If this parameter is not supplied the serialized graph will be returned.
14521462 format: The format that the output should be written in. This value
1453- references a Serializer plugin. Format support can be extended with plugins,
1454- but "xml", "n3", "turtle", "nt", "pretty-xml", "trix", "trig", "nquads",
1455- "json-ld" and "hext" are built in. Defaults to "turtle".
1463+ references a Serializer plugin.
1464+ Format support is managed with [plugins][rdflib.plugin].
1465+ Defaults to "turtle" and some other formats are builtin,
1466+ like "xml" and "trix".
1467+ See also [serialize module][rdflib.plugins.parsers].
14561468 base: The base IRI for formats that support it. For the turtle format this
14571469 will be used as the @base directive.
14581470 encoding: Encoding of output.
@@ -1539,9 +1551,10 @@ def parse(
15391551 RFC 3986 <https://datatracker.ietf.org/doc/html/rfc3986#section-5.1.4>`_,
15401552 given the source document does not define a base URI.
15411553 format: Used if format can not be determined from source, e.g.
1542- file extension or Media Type. Defaults to text/turtle. Format
1543- support can be extended with plugins, but "xml", "n3" (use for
1544- turtle), "nt" & "trix" are built in.
1554+ file extension or Media Type. Format support is managed
1555+ with [plugins][rdflib.plugin].
1556+ Available formats are e.g. "turle", "xml", "n3", "nt" and "trix"
1557+ or see [parser module][rdflib.plugins.parsers].
15451558 location: A string indicating the relative or absolute URL of the
15461559 source. `Graph`'s absolutize method is used if a relative location
15471560 is specified.
0 commit comments