Jheald created this task.
Jheald added a project: Wikidata-Query-Service.
Herald added a subscriber: Aklapper.
Herald added projects: Wikidata, Discovery.

TASK DESCRIPTION

I am having a problem with a federated SPARQL query http://tinyurl.com/yad8uzt3 that invokes the UK Ordnance Survey sparql service.

The problem appears to be a SPLARQL prefix line being sent by our service that includes a URL containing more than one hash character.

The federated query used to work as of April, but is now generating an error from the remote service:
Line 30, column 15: org.apache.jena.iri.impl.IRIImplException: <http://wikiba.se/ontology#api#> Code: 0/ILLEGAL_CHARACTER in FRAGMENT: The character violates the grammar rules for URIs/IRIs.

The error message also includes the attempted remote query.

If I go to http://data.ordnancesurvey.co.uk/datasets/os-linked-data ("Find things using a query"), I can copy the main part of that generated remote query and run it by hand on their SPARQL service successfully:

# prefix mwapi: <http://wikiba.se/ontology#api#>

SELECT  ?os_toid ?gss
WHERE {

      ?os_toid <http://data.ordnancesurvey.co.uk/ontology/admingeo/gssCode> ?gss
    
}
VALUES ( ?gss) {
( "W07000058" )
( "S14000002" )
( "S14000003" )
( "W07000057" )
( "S14000005" )
}

However, if I add/uncomment that prefix line, their SPARQL service returns a parse error -- it appears their service doesn't like the second hash in the URL.


TASK DETAIL
https://phabricator.wikimedia.org/T174930

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Jheald
Cc: Aklapper, Jheald, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, Avner, debt, Gehel, Jonas, FloNight, Xmlizer, Izno, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to