Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Antonio Garrote
@antoniogarrote
Thanks a lot!
Thomas Bergwinkl
@bergos
Hi! @antoniogarrote do you know http://bergos.github.io/rdf-ext-spec/ ? Will it be possible with the 1.x version to use only the store, without the SPARQL engine, to wrap it into a rdf-ext Store interface?
Antonio Garrote
@antoniogarrote
Hi @bergos the code include an implementation of the RDF interfaces API that is independent of the store: https://github.com/antoniogarrote/rdfstore-js/blob/master/src/rdf_model.js when you run a 'construct' query the results are wrapped into a RDF interfaces graph object. In the old version there was an independent npm package only with that functionality. I wonder if that's what you are looking for? Regards!
Thomas Bergwinkl
@bergos
I'm looking for a fast replacement for this code: https://github.com/zazukoians/rdf-ext/blob/master/lib/inmemory-store.js
Btw. there is a wrapper code https://github.com/zazukoians/rdf-ext/blob/master/lib/rdfstore-store.js, but that requires the whole rdfstore-js package.
Antonio Garrote
@antoniogarrote
I see @bergos, you can use the RDFInterfaces module directly without using the store at all. One example: https://gist.github.com/antoniogarrote/065acdc5f46e328961ba
It is just a variation of a par ot the example you pointed me before. I hope it is useful.
Danny Ayers
@danja
Hi @antoniogarrote, everyone. Just popped by to also ask about 1.0 timescale - got it, thanks. I'm looking at using the SPARQL parts to add local support to an Ajaxy app (will make libs when done). Also using RDF interfaces API alongside @bergos rdf-ext.
Nauman
@nomi-ramzan
Hi All I have one off-topic question related sparql query. SampleData and here is my question Question Thank you
Romain Beaumont
@rom1504
Hi, I'm wondering whether you'd have a demo of sparql execution of a small kb you'd paste on the browser ? (paste a few triples, a sparql query, get the results)
Antonio Garrote
@antoniogarrote
Hi @rom1504, check the frontend directory, it contains an stand-alone atom shell example. It's just html + js executed in a chrome browser. You can read how to build it in the Readme file.
Romain Beaumont
@rom1504
okay I'll look at it
Gert van Valkenhoef
@gertvv
Hi Antonio, in the README it says "It can also be executed as a stand-alone SPARQL end-point accepting SPARQL RDF Protocol HTTP requests." but I can't figure out how to actually do that. Is it still a thing? Would be great!
Antonio Garrote
@antoniogarrote
@gertvv Hi, sorry that was possible with the first version of the library. The new version focuses only on the client side. Check the '0x' branch if you're curious.
Gert van Valkenhoef
@gertvv
Thanks, no problem, just update the docs! I'm actually more interested in the browser side of things We were using rdfstore-js before but had to fall back to jena on the server side due to some bugs in 0x. I wanted to try swapping the jena server to rdfstore to check whether all our queries run correctly now. Unfortunately I ran into issue #101 almost immediately.
Mehdi Terdjimi
@mterdjimi

Hi all. Is there any way to parse rdf/xml? When I register rdfext's RdfXmlParser, it does not work.

Best

infty-
@infty-
This is my first time posting here, so: Hello, nice people out there.
I have some clonable JavaScript-objects (like the objects you store when using plain IndexedDB). To be a little more concrete, they are virtual DOM trees: https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/README.md
infty-
@infty-
I want to store these objects on client side.
I also have some triples which use references to a specific virtual DOM element as subject or object.
So my question:
What's the cleverest way to store my triples together with my JavaScript-objects when there are relations between?
Can I use the same Indexed DB database for both of them?
infty-
@infty-
Or do I have to put my RDF and my virtual DOM in two different IndexedDB databases, give my DOM elements ids and use these IDs to reference them from my RDF triples?
I'm looking forward to your answer(s), thanks altogether.
infty-
@infty-
Any opinion concerning that?
Kingsley Idehen
@kidehen
Kingsley Idehen
@kidehen
All:
Quick Guide for deploying our RDF Editor (an rdfstore-js based app) via Node.js:
Download RDF Editor Zip Archive from : http://opldownload.s3.amazonaws.com/uda/vad-packages/7.2/rdf_editor_pkg.zip
Extract archive to a folder ({RDF Editor Archive Extraction Folder} henceforth)
From your OS command-line interface run: npm install http-server -g -- to setup global invocation of HTTP Server
From your OS command-line interface run: http-server {RDF Editor Archive Extraction Folder}/rdf-editor
Open up your browser and goto: http://localhost:8080
elf Pavlik
@elf-pavlik
@/all please check out https://gitter.im/rdfjs/public - channel of RDFJS CG which currently has Task Force working on Interface Specification as well as https://gitter.im/rdf-ext/discussions with discussions around growing environment of rdf-* npm modules which in 1.0 will implement mentioned spec
Drew Perttula
@drewp
i want to receive trig, maintain a store of ~1000 quads, add/remove them, do simple lookups, and subscribe to triple patterns. can rdfstore work with quads to this degree? doesn't seem like it
elf Pavlik
@elf-pavlik
Drew Perttula
@drewp
thanks, i flipped through rdf-ext a bit but didn't see anything i could use.
meanwhile, i did the Right Thing and added a layer between the api i need and whatever lib i choose: https://github.com/drewp/light9/blob/master/light9/web/graph.coffee#L30-L126
N3.js is working for now, and my app code doesn't have to know about its funky Literal encoding :)
elf Pavlik
@elf-pavlik
N3.js shoudl also implement interfaces defined in that draft from RDFJS CG rdfjs/representation-task-force#67
datokrat
@datokrat
hi there, I'm working on a project which just has started to use rdfstore-js as the fundament of development and we stumbled upon performance problems when querying larger graph patterns via SPARQL. It seems that the problem was an optimization algorithm in the query_plan.js file which did complex cost calculations. Nevertheless, this seemed not very senseful at the moment because all range queries are weighed equally with cost 1 and that's why I replaced it with a rather simple but working algorithm in our repository.
You can find the diff of my relatively small change here: disco-network/rdfstore-js@1c1c746
Does anybody here have some experience to tell me whether it is a good idea to do that and whether you would recommend me to do a pull request? I'm still a rather unexperienced developer regarding GitHub.
m0ru
@m0ru
heio :)
We're developing an app that uses rdfstore-js to cache triples. I'm currently looking into ways to persist these between sessions, as the initial, post-login fetch takes quite a while. As most of this data is somewhat to fully confiedential and occassionally multiple people use the same browser-profile, I'd really like to use the WebCryptoAPI to encrypt it before storing it in the IndexedDB . Before fully digging into the sources I wanted to ask if there's a good point/interface/connector/plugin-system/etc where I could extend the storage mechanism of rdfstore-js / should start reading? How much effort do you think it would be for someone new to the lib to implement something like this? :)
datokrat
@datokrat

Hi,

I think it should be possible to change the database without too much effort. I also managed to replace the IndexedDB database with another one quite quickly without diving deeper into rdfstore-js (but can't find the link at the moment ).

What I still remember is that the important files to modify were:

If you want to see another database implementation, just look at the in-memory alternative (remove the "persistent_" from the links above). Happy Hacking ;)

m0ru
@m0ru
thx :)
Mehdi Terdjimi
@mterdjimi
Hello guys, do you know if blank nodes in rdfstore are either persisted after insertion or generated dynamically at query answering time ? I am trying to understand this mechanism in the store.
Antonio Garrote
@antoniogarrote
Hi @Spadon the bnodes are stored, but the identifiers are generated on the fly during the query resolution. You should not rely on them although right now the algorithm is deterministic, so the same query over the same RDF graph should render the same bnode labels.
Mehdi Terdjimi
@mterdjimi
Ok thanks!
Constantin Kondratyev
@cnstntn-kndrtv
Hi. I really like your project. Its great, but still would like to ask why you`ve deprecated support for MongoDB?
Constantin Kondratyev
@cnstntn-kndrtv
@antoniogarrote Hi. Why you`ve deprecated support for MongoDB?
kenwenzel
@kenwenzel
Hello, is it still of interest to find an alternative way of handling existential filters (filter (not) exists) at any depth of a filter expression? I've created a PR some time ago that addresses this issue antoniogarrote/rdfstore-js#129 and I'm also willing to rebase the change to the latest version of rdfstore-js. My change uses promises to cleanly handle any asynchronous computation within filter expressions.
Smruti Padhy
@smpadhy
Hello, I am experiencing the issue mentioned in antoniogarrote/rdfstore-js#119 which is closed now. I will appreciate any idea on the issue of searching across named graphs. I have posted the details in that issue comment.
@fbaumgardt @antoniogarrote ?
Mark Hughes (happybeing)
@theWebalyst
@antoniogarrote hi, I'm looking around in project SOLID and have some questions about rdfstore-js. Are you around?
Aad Versteden
@madnificent
:wave: Is this project still alive?