Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"rdf:" not found when sending a federated query to Fuseki #114

Closed
MaillPierre opened this issue Nov 23, 2022 · 2 comments
Closed

"rdf:" not found when sending a federated query to Fuseki #114

MaillPierre opened this issue Nov 23, 2022 · 2 comments

Comments

@MaillPierre
Copy link
Member

Tested with Fuseki 4.6.1.

When sending a federated query that contains the "a", to remplace "rdf:type" to a fuseki service through corese, the query sent by corese to the service replace the "a" by "rdf:type" but do not include the namespace "rdf:"

For example, for the following query sent to corese:

PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX earl: <http://www.w3.org/ns/earl#>
PREFIX kgi: <http://ns.inria.fr/kg/index#>
PREFIX void: <http://rdfs.org/ns/void#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
INSERT {
    ?datasetDescription  void:classPartition ?classPartition .
    ?classPartition void:class ?c .
}
WHERE {
    SERVICE <http://localhost:3030/DekalogDebugEmpty/sparql> {
        { ?s a ?c . }
    }
    BIND(Iri(CONCAT(str(kgi:), MD5(str(<http://localhost:3030/DekalogDebugEmpty/sparql>)), "Dataset")) AS ?datasetDescription)
    BIND(Iri(CONCAT(str(kgi:), MD5(CONCAT(str(<http://localhost:3030/DekalogDebugEmpty/sparql>), str(?c))), "Partition")) AS ?classPartition)
}

The following query is received by fuseki:

prefix kgi: <http://ns.inria.fr/kg/index#> 
prefix prov: <http://www.w3.org/ns/prov#> 
prefix void: <http://rdfs.org/ns/void#> 
prefix earl: <http://www.w3.org/ns/earl#> 
select *  where {   {?s rdf:type ?c .} }

The rdf namespace has disappeared and the server returns a 400 error.

@ocorby
Copy link
Contributor

ocorby commented Nov 23, 2022 via email

@MaillPierre
Copy link
Member Author

Good job !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants