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

Linking RMLibrary to ECARTICO/Wikidata #1

Open
LvanWissen opened this issue Aug 26, 2021 · 0 comments
Open

Linking RMLibrary to ECARTICO/Wikidata #1

LvanWissen opened this issue Aug 26, 2021 · 0 comments
Labels
Linkset A new linkset needs to be made (e.g. with Lenticular Lens)

Comments

@LvanWissen
Copy link
Member

We need a linkset between the RMLibrary dataset and ECARTICO. Wikidata can serve as a hub and already has many references to both datasets, but this needs to be extended.

At this moment, there are 776/1999 persons with an URI on https://id.rijksmuseum.nl/ in this dataset linked on Wikidata (property P7444), and thereby sometimes to ECARTICO (property P2915) and the NTA (property P1006).

Query on endpoint https://sparql.goldenagents.org/sparql, or through https://api.triplydb.com/s/IwdLzxjNS for every Person resource that is referred to by Wikidata:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>

SELECT * WHERE {
    # Query Wikidata for all entities with a Rijkmuseum Identifier
    SERVICE <https://query.wikidata.org/sparql> {
    
      ?wd wdt:P7444 ?rmid .
      BIND(URI(CONCAT("https://id.rijksmuseum.nl/310", ?rmid)) AS ?person)

      # Use Wikidata to map to Ecartico
      OPTIONAL {
        ?wd wdt:P2915 ?ecarticoid .
        BIND(URI(CONCAT("http://www.vondel.humanities.uva.nl/ecartico/persons/", ?ecarticoid)) AS ?ecartico)
      }

      # Use Wikidata to map to the NTA
      OPTIONAL {
        ?wd wdt:P1006 ?ntaid .
        BIND(URI(CONCAT("http://data.bibliotheken.nl/id/thes/p", ?ntaid)) AS ?nta)
      }
  } 
  GRAPH <https://data.goldenagents.org/datasets/u692bc364e9d7fa97b3510c6c0c8f2bb9a0e5123b/rmlibrary_20210825> {
    ?person a schema:Person ; 
          schema:name ?name .
  }
}
@LvanWissen LvanWissen added the Linkset A new linkset needs to be made (e.g. with Lenticular Lens) label Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linkset A new linkset needs to be made (e.g. with Lenticular Lens)
Projects
None yet
Development

No branches or pull requests

1 participant