Skip to content
Thomas Bergwinkl edited this page Oct 13, 2016 · 1 revision

Can we make a checklist for these questions?

  • make a short description in the readme

Classes/Methods

  • Proposals for classes or methods which should be part of the high level spec:
    • (@bergos: Dataset - see https://github.com/rdfjs/representation-task-force/wiki/DataSet-spec )
    • Promise-based utility (or maybe just a method on Dataset) that wraps the stream store & sink APIs, to provide a simple .serialize() method for datasets.
    • Dmitri: Literal.valueOf() (returns the native JS representation of the literal's value, same as in the RDF Interfaces spec for .valueOf() https://www.w3.org/TR/rdf-interfaces/#literals ). (blake says: .valueOf() gets called during concatenation before .toString(). <- maybe it makes sense to also implement this for other Term types?)
    • Dmitri: Dataset.any(s, p, o, g) as an alias to matches = Dataset.match(s, p, o, g); if (matches.length) { return matches[0] } else { return null } -- a very frequent operation.
      • what are other options for this name? .find() -> same semantics as Array.find()
    • Dmitri: Dataset.anyValue(s, p, o, g) as an alias to matches = Dataset.match(s, p, o g); if (matches.length) { return matches[0].value } else { return null }
      • other options? .findValue()