Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:40
    jacoscaz converted_to_draft #752
  • 01:06

    rubensworks on gh-pages

    Deploy comunica/comunica to git… (compare)

  • 00:47

    renovate[bot] on eslint-plugin-unused-imports-1.x

    (compare)

  • 00:47

    renovate[bot] on master

    Update dependency eslint-plugin… (compare)

  • 00:47
    renovate[bot] closed #754
  • 00:13
    coveralls commented #754
  • 00:04
    coveralls commented #754
  • 00:04
    coveralls commented #754
  • 00:04
    coveralls commented #754
  • 00:04
    coveralls commented #754
  • Oct 25 23:53
    renovate[bot] opened #754
  • Oct 25 23:03

    renovate[bot] on eslint-plugin-unused-imports-1.x

    Update dependency eslint-plugin… (compare)

  • Oct 25 20:36
    alexkreidler opened #753
  • Oct 25 19:41
    jacoscaz synchronize #752
  • Oct 25 19:40
    jacoscaz synchronize #752
  • Oct 25 19:26
    jacoscaz edited #752
  • Oct 25 19:16
    jacoscaz synchronize #752
  • Oct 25 19:08
    jacoscaz synchronize #752
  • Oct 25 19:02
    CLAassistant commented #752
  • Oct 25 19:00
    CLAassistant commented #752
Ruben Taelman
@rubensworks
Ah indeed, no RSS (yet) on the website. We have a self-baked blog, so we'd have to implement RSS ourselves. You're welcome to contribute though :) : https://github.com/comunica/website
André Santos
@andrefs
I'll look into it and see if I can come up with a pull request :+1:
Ruben Taelman
@rubensworks
Great :) Something along the lines of this would probably be straightforward to setup: https://github.com/messa/nextjs-mdx-blog-example
Daniel Beeke
@danielbeeke
Hi, is it possible to use a proxy within rdf-dereference? Or to create a component in Comunica to retry after a cors error? If the latter is possible I would be wanting to write it. Searching for how to start :)
Ruben Taelman
@rubensworks
@danielbeeke Yes, it's possible to use a proxy. Here's a guide on how to enable one: https://comunica.dev/docs/query/advanced/proxying/
Not sure what you mean exactly with a component to retry after a cors error though. If a request fails once because of cors, it won't work later on, right? Unless you mean that you want to only enable a proxy after it has failed?
Daniel Beeke
@danielbeeke
Thanks for the response! I am trying out to use rdf-dereference in the browser and would like to fetch https://www.w3.org/1999/02/22-rdf-syntax-ns. However a CORS error occurs. I wonder if I can change the config of rdf-dereference in runtime to use a specific proxy
I am learning comunica, sorry for simple questions
Ruben Taelman
@rubensworks
Ah sorry, I missed that you were using rdf-dereference. That same proxy can be plugged in there as well. I did that recently in rdf-play, in case you need an example.
No worries, that's what this channel is for :-)
Daniel Beeke
@danielbeeke
Great! I think I understand the example. Will try it out
great it works and so simple
Ruben Taelman
@rubensworks
Great, I'm glad it works :)
André Santos
@andrefs
Hello, I'm trying to understand what dynamic variant means in comunica-dynamic-sparql or comunica-dynamic-sparql-hdt
Ruben Taelman
@rubensworks
@andrefs The dynamic variant allows you to pass a custom configuration file. Mainly useful if you want to change what actors are being used by Comunica. Here's an example of how this can be done: https://comunica.dev/docs/modify/getting_started/custom_config_cli/
André Santos
@andrefs
ah ok, got it, many thanks!
Christian-Nja
@Christian-Nja
Hi guys i'm new here. I need to set up a query layer for a LD application. Data semantics should be default but what can change are obviously IRI identifying those data. What i would like to is separate data interface from namespace.
I was thinking to two possibility: (1) GRAPHQL + resolver (resolver function written with comunica and JSON-LD context) (2) no GRAPHQL but only GRAPHQL-LD and JSON-LD context to store configurations for IRI
I give an example to help understand
Christian-Nja
@Christian-Nja
{
document {
doc_author
publication_date
}
}
I may found this interface on different KG, what change are IRIs
ex. in a KG_1 document is represented by: https://namespace/kg1/Document
in KG_2 document is represented by: https://another_namespace/graphs/kg2/document_iri
What i would use is JSON-LD context mechanism as a configuration file
Christian-Nja
@Christian-Nja
What I wonder is if GRAPHQL_LD can convert to any kind of SPARQL queries and let me abstract the interface
or do you suggest some other solution?
Ruben Taelman
@rubensworks
@Christian-Nja Option 2 sounds like a good approach, given that you may have different document IRIs in different KGs. The JSON-LD context is then a good way to cope with this.
GraphQL-LD is not as expressive as SPARQL, so if you intend to write very complex SPARQL queries, you may run into some restrictions there. But most traditional SPARQL queries can also be expressed in GraphQL-LD. Here's a list of all features: https://github.com/rubensworks/graphql-to-sparql.js
Christian-Nja
@Christian-Nja
Thank you @rubensworks , that's great. And in case i need more complex query i can switch to this approach https://comunica.dev/docs/query/advanced/context/#5--binding-variables , defining my interface as a variable in the SPARQL query, for example ?document and binding the variable IRI from a configuration file, sounds good ?
Ruben Taelman
@rubensworks
Yep, that should work!
David de Boer
@ddeboer
Hello! How can I set a timeout when querying SPARQL sources? Or should I solve that in userland instead?
Ruben Taelman
@rubensworks
@ddeboer Hi! That's not possible at the moment unfortunately. But feel free to open an issue or PR for it! Shouldn't be too hard to add support for it.
David de Boer
@ddeboer
Thanks for your quick reply @rubensworks! Created an issue at comunica/comunica#745.
Daniel Beeke
@danielbeeke
I am trying to query dbpedia. It looks like they have non standard sparql. For example the following query:
SELECT DISTINCT ?s WHERE { ?s a owl:Thing . ?s rdfs:label ?label . FILTER ( LANGMATCHES ( LANG ( ?label ), 'en' ) ) ?label bif:contains '"apple"' . } limit 500 offset 0
The bif:contains is unknown
Martynas Jusevicius
@namedgraph_twitter
Ruben Taelman
@rubensworks
Defining a random prefix value for bif: may also work.
Martynas Jusevicius
@namedgraph_twitter
in a FILTER
Daniel Beeke
@danielbeeke
Thanks! PREFIX bif: <bif:> works.
Daniel Beeke
@danielbeeke
Querying http://dbpedia.org/sparql looks to be harder then I thought. The query results in a lot of calls: 40+. And a lot of http status 500
Martynas Jusevicius
@namedgraph_twitter
40 requests?
Ruben Taelman
@rubensworks
@danielbeeke If you're just querying dbpedia as a single source, try defining the source manually as sparql. Then it should only send a single request.
The 500 errors should not happen though. Either we are sending invalid queries (if so, please report this), or the server is having issues.
Daniel Beeke
@danielbeeke
@rubensworks thanks! I will try that out :)