by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
elf Pavlik
@elf-pavlik
@bergos will you have async version of clownface? i rolled up something similar in https://github.com/valueflows/vf-track-trace.ts/blob/master/index.ts#L34-L43 which eventually should work with TPF client and query store over the network
that code uses ES async iteration and for - await - of loop to traverse data
Thomas Bergwinkl
@bergos
@elf-pavlik i plan to add again support for the store interface in version 1.1, but i don't have a schedule for releases after 1.0 yet.
elf Pavlik
@elf-pavlik
thanks! I let myself to create issue to track it: rdf-ext/clownface#4
Blake Regalia
@blake-regalia
@pietercolpaert graphy does this by default for XSD datatype-specific values like you mentioned, for example, parsing "42"^^xsd:integer from a Turtle document yields a Literal_Integer, and the numeric value is available as term.number while the string remains at term.value
elf Pavlik
@elf-pavlik
@blake-regalia could you please paste a link to the code in graphy which handles that casting?
Blake Regalia
@blake-regalia
@elf-pavlik actually I recall now it only applies to syntactic numerals e.g., 42 or 3.14159 so that it doesn't have to handle parsing errors; numeric_literal()
elf Pavlik
@elf-pavlik
thanks!
Pieter Colpaert
@pietercolpaert
@blake-regalia I never checked out graphy before (now I did). Cool stuff! Plays well together with ldfetch too :)
elf Pavlik
@elf-pavlik
@rubensworks @RubenVerborgh @bergos @jacoscaz have any of you tried to implement RDFJS Source interface on top of TPF client ? I would find it useful to have possibility in applications to use instance of RDFJS Source exposing dataset on remote TPF server.
Ruben Taelman
@rubensworks
No, but it should be trivial to implement that using Comunica though, as that already returns RDFJS-compliant streams for any SPARQL query. So you could just feed it a simple triple pattern query.
dwhitney
@dwhitney
anybody know of a set of generic SPARQL queries I can use to validate SHACL shapes?
I'm using the topbraid shacl-js library. It's a bit buggy and quite slow.
dwhitney
@dwhitney
I take it back - after some bench marking shacl-js is pretty fast. It does silently fail when I send it invalid RDF, but I can handle that for now
Martynas Jusevicius
@namedgraph_twitter
Pieter Colpaert
@pietercolpaert
https://github.com/rdfjs/fetch-lite @bergos Any why this is not published on NPM?
Thomas Bergwinkl
@bergos
@pietercolpaert was waiting for the dataset spec
so it should be soon released
Pieter Colpaert
@pietercolpaert
Ok! Thanks!
Thomas Bergwinkl
@bergos
@/all i've upgraded the rdf-body-parser package, which was actually already more then a body-parser, as it also handles sending responses. the new name is now express-handler and i put it already into the rdfjs org. it still has a rdf-ext dependency, as it relies on the .import() and .toStream() methods of the dataset. in all other packages of the rdfjs i have only rdfjs dependencies, if a rdf related package is required. anyway i would like to release it already in the rdfjs org as it will use the rdfjs dataset once we finished the rest of the dataset spec and it don't want to create packages, which are maintained only temporary and requires people to change the dependency. any concerns? and here is the package: https://github.com/rdfjs/express-handler
elf Pavlik
@elf-pavlik
:+1:
Sarven Capadisli
@csarven
@bergos npm rdf-body-parser stays as is however right?
Thomas Bergwinkl
@bergos
yes, it will stay. i think there is not even an option to unpublish it. maybe i can update the readme, pointing to the new package.
Austin Wright
@awwright
left-pad is just the gift that keeps on giving
dwhitney
@dwhitney
anybody know if there is a repo for typescript type declarations for the three different specs on https://rdf.js.org/
I don't see them but I thought I'd check
dwhitney
@dwhitney
thanks
elf Pavlik
@elf-pavlik
np
Arne Hassel
@megoth_twitter
huh, shouldn’t rdflib be listed in Libraries at https://rdf.js.org/ ? or am I just blind =P
elf Pavlik
@elf-pavlik
@megoth_twitter I don't know which interfaces it implements, would you like to make quick PR ?
Arne Hassel
@megoth_twitter
ah, that’s a good point, unsure about the specifics about that myself
elf Pavlik
@elf-pavlik
it think at least DataFactory, initial listing could include just that
Arne Hassel
@megoth_twitter
I added a PR to add rdflib.js to the list: rdfjs/rdfjs.github.io#5
it does not implement any of the specifications, but I think it’s important to have there anyway
Austin Wright
@awwright
Why does Data Model specify a DataFactory interface when WebIDL has a standard way of exposing constructors and object factories?
Thomas Bergwinkl
@bergos
@awwright where in the spec are factories defined?
Austin Wright
@awwright
@bergos The whole DataFactory interface, what's that doing that you can't with a WebIDL constructor?
Thomas Bergwinkl
@bergos
where in the webidl spec are factories defined?
if it's about using factory vs. using constructor, i think there is an older issues or log from a call.
Austin Wright
@awwright
Well WebIDL doesn't specify the term "factory" but in the sense of "something you call to create a new instance" there's definitely a standard way to do that; I can't find any other specification that defines any sort of "${thing}Factory" the way Data Model or Dataset does
Austin Wright
@awwright
Like one of the peculiarities is all of the interfaces have the same definition; so if the intention is that an implementation is going to expose the DataFactory, it's also going to have to expose Term, NamedNode, ect; because you have to explicitly hide interfaces with [NoInterfaceObject] (and even then that's highly discouraged)
victor felder
@vhf
The way I see DataFactory is as a utility. I think we could live without but I also think it's often useful to have this object you can pass around.
@awwright If I understand correctly you are saying two things:
  1. Why do we need DataFactory / why is it spec'd that way?
  2. Why isn't [Constructor] used for the interfaces 2.1 to 2.7?
Austin Wright
@awwright
@vhf Yeah; I'm not a huge expert but it definitely appears to diverge from what I would expect an interface to define
And I say that because... my implementation didn't implement the factory interface until recently: https://github.com/awwright/node-rdf (and it's still unpublished to npm), I've always expected people to call new Interface directly
elf Pavlik
@elf-pavlik
@awwright please see https://github.com/rdfjs/stream-spec/pull/10/files#diff-eacf331f0ffc35d4b482f1d15a887d3bR142
having one object to pass around works very well, how would you imagine to do that with bunch of constructors?
Austin Wright
@awwright
@elf-pavlik Would that be a kind of dependency injection?
My suggestion would just be to have an optional parameter with an object of the interfaces; this would default to window (for Web browsers; and would be supplied with a module reference for Node.js etc.)