@grafctory/trio - v0.4.0
    Preparing search index...

    Function encodeNTriples

    • Encodes an RDF graph into an N-Triples document.

      Literals with the xsd:string datatype are written in the bare quoted form.

      Terms are not validated: a record built without the data model factories is serialised as it stands, malformed components included, so a Graph is expected to be assembled through the factories alone.

      Parameters

      • graph: Graph

        The graph to serialise

      Returns string

      The N-Triples document