Skip to content

Slash separated ontologies cause unneeded traversals when used as source #61

@Maximvdw

Description

@Maximvdw

Issue type:

  • 🐛 Bug

Description:

This issue is for fixing performance issues with slash separated ontologies. Lets say you are using X subjects
from the same ontology http://example.com/myontology/A, http://example.com/myontology/B. Currently they are treated as individual datasets and will be traversed individually (as they should). In a normal linked data front-end this would work fine and only fetch these concepts rather than a large dataset that might contain unneeded information.

In some use cases you might be using a lot of concepts from the same ontology, in which case one request to http://example.com/myontology/ would be preferable.

When putting this ontology in sources, I would expect only one request to be make. However, it seems Comunica will still try to fetch the subjects individually creating individual requests for every subject in http://example.com/myontology/.

I think it is similar to the 'similarity' prioritisation in #51 , however I was not certain it is the exact issue that appears here.

Try it out
https://comunica.github.io/comunica-feature-link-traversal-web-clients/builds/default/
Use the following source (http):
http://qudt.org/vocab/unit/
Enable the proxy (also tested it without proxy):
https://proxy.linkeddatafragments.org/
Make sure it is HTTPS and not the default HTTP

Test query:

PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX qudt: <http://qudt.org/schema/qudt/>
SELECT ?unitName WHERE {
    ?unit a qudt:Unit ;
          rdfs:label ?unitName .
}

For each concept that is available in the source, it will still create a request to the individual pages (which in the case for this ontology is a lot)


Environment:

I am using the default config along with "@comunica/query-sparql-link-traversal-solid": "0.0.2-alpha.4.0",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions