-
Notifications
You must be signed in to change notification settings - Fork 12
Meeting 2016 09 01
Thomas Bergwinkl edited this page Oct 13, 2016
·
1 revision
- Which libraries or framework will use the API? => @all
- let's list these at https://github.com/rdfjs/representation-task-force/wiki/Modules ?
- simplerdf
- clownface
- What would be helpful for them and how many other libs would use a feature?
- counting +1
Can we make a checklist for these questions?
- make a short description in the readme
- 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()