KnowledgeLinks / Plains2PeaksPilot

Data and utilities for Plains2Peaks DP.LA Service Hub Pilot
0 stars 0 forks source link

Wyoming University data has bf:usageAndAccessPolicy storing a blanknode #35

Closed mstabile75 closed 6 years ago

mstabile75 commented 6 years ago

should store the URI for the rightsstatment. This query will fix the data in the triplestore for a temporary fix

prefix bf: <http://id.loc.gov/ontologies/bibframe/>
DELETE
{
  ?s bf:usageAndAccessPolicy ?bn . 
  ?bn ?p ?o
}
INSERT
{
  ?s bf:usageAndAccessPolicy ?policy .
}
WHERE
{
  ?s bf:usageAndAccessPolicy ?bn .
  ?bn ?p ?o .
  ?bn rdf:value ?policy .
  filter(isblank(?bn))
}
mstabile75 commented 6 years ago

In addition there are 782 triples with the wrong rightsstatement URI. This query will provide a temporary fix

DELETE
{
  ?s ?p <http://rightsstatements.org/page/InC/1.0/>
}
INSERT
{
  ?s ?p <http://rightsstatements.org/vocab/InC/1.0/>
}
WHERE
{
  ?s ?p <http://rightsstatements.org/page/InC/1.0/>
}