Define Libris XL as an endpoint in Wikidata
Open, Needs TriagePublic

Description

Requirement see Wikidata:SPARQL_federation_input

  • Complies with the SPARQL 1.1 protocol, "query operation" part, at least to the extent necessary to make federated SERVICE clause work
  • Contains data that can be linked to Wikidata
  • Has data freely available under license compatible with CC0 (preferred) link www.kb.se/libris

See response Libris XL

Example Federated search from presentation 2014


in video at 43min

Discussion in Swedish about how caching can be used for federated search in '''Libris''' see video at 47 minutes

See also:

Salgo60 created this task.Jul 20 2018, 8:11 AM
Salgo60 moved this task from Backlog to Input LIBRIS XL on the WMSE-Riksarkivet-TORA board.
Salgo60 updated the task description. (Show Details)Jul 20 2018, 10:05 AM
Salgo60 updated the task description. (Show Details)
Salgo60 updated the task description. (Show Details)Jul 28 2018, 10:05 AM

Per https://www.kb.se/libris/Oppna-data/ svensk nationalbibliografi and svenska auktoritetsposter are CC0

Salgo60 updated the task description. (Show Details)Jul 30 2018, 1:27 PM
Salgo60 updated the task description. (Show Details)
Salgo60 added a comment.EditedJul 30 2018, 1:39 PM

Thanks @Lokal_Profil
is there a dedicated place for storing information like this (CC0 etc.) about Federated Services used in WD?

FYI: I also thought to get some experience it would be nice to test Federation with a service that is already up and running see {T200668: Set up Nobel Data as federated search with Wikidata}

Salgo60 added a comment.EditedSep 9 2018, 7:52 PM

Endpoint has been set up see Wikidata_Query_Service ....SPARQL_Federation_endpoints

No success see tweet

Wild guess

  1. something needs to be set up at LIBRIS
  2. wrong URL
Salgo60 added a subscriber: Smalyshev.EditedSep 9 2018, 9:17 PM

@Smalyshev do you have a skilled guess were the problem is?

Status:

  1. the LIBRIS XL project has recently moved direction Linked data ==> I feel we have no good contact person for things like this
  2. the mentioned end point above I have not seen it used in a federated search from anther system
  3. my skills in SPARQL federation is just test done with Nobel data T200668: Set up Nobel Data as federated search with Wikidata

I think the whitelist was not deployed yet, could you try again now and see if it works?

Aklapper changed the edit policy from "Custom Policy" to "All Users".Sep 17 2018, 5:48 PM
Aklapper changed Risk Rating from N/A to default.

Thanks @Smalyshev now the federated search works Wikidata <-> LIBRIS

  • search August Strindberg name in LIBRIS
#Federated search Wikidata -> LIBRIS
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

PREFIX libris: <http://libris.kb.se/resource> 
SELECT * WHERE {
  SERVICE <http://libris.kb.se/sparql> {
  ?subject a foaf:Person .
  ?subject foaf:name "August Strindberg" .
  ?subject ?predicate ?object .
  }  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
}

Looks like I lack the skills to combine a Wikidata search with LIBRIS ID P906 and combine this search with what is in LIBRIS

#Federated search Wikidata -> LIBRIS
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdfs: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX libris: <http://libris.kb.se/resource> 
PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT distinct ?person ?personLabel ?LIBRISid ?LIBRISuri ?subject  WHERE {
  ?person wdt:P3217 ?SBLID.
  ?person wdt:P906 ?LIBRISid.
  BIND(URI(CONCAT("http://libris.kb.se/data/auth/",?LIBRISid)) AS ?LIBRISuri) 
#                  <http://libris.kb.se/data/auth/211283>
#                  <http://libris.kb.se/data/auth/94541>
# BIND(URI(CONCAT("http://libris.kb.se/resource/auth/",?LIBRISid)) AS ?LIBRISuri) 
#                  http://libris.kb.se/resource/auth/220040                  
# BIND(URI(CONCAT("auth/",?LIBRISid)) AS ?LIBRISuri) 
  SERVICE <http://libris.kb.se/sparql> {
   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#   OPTIONAL {?subject <http://www.w3.org/1999/02/22-rdf-syntax-ns#isDefinedBy> ?LIBRISuri}

#   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#   OPTIONAL {?subject owl:sameas ?LIBRISuri}
#   OPTIONAL {?subject rdfs:isDefinedBy ?LIBRISuri}
#  ?subject foaf:name "August Strindberg" .
#  ?subject ?predicate ?object .
  }  
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }
} limit 10

FYI @Alicia_Fagerving_WMSE
cc: @Lokal_Profil , @Larske