Skip to content
Digital libraries data-quality evaluation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
output
README.md
bnb-ids.py
bne-ids.py
bnf-ids.py
bvmc-ids.py
population-ids.py

README.md

dl-validation

Digital libraries data-quality evaluation

Criterion population completeness

This SPARQL query retrieves 2500 writers of poetry and plays from Wikidata. Then, the python script generates a ramdon list of authors which has been used for the criterion population completeness.

SELECT DISTINCT ?s ?sLabel
WHERE {
    ?s wdt:P31 wd:Q5.
    ?s wdt:P106 wd:Q49757.
    ?s wdt:P106 wd:Q214917.
    SERVICE wikibase:label {
        bd:serviceParam wikibase:language "es" .
    }
}
LIMIT 2500

Syntactic validity of RDF documents and semantic validity of triples criteria

SPARQL query to retrieve a list of authors from the Biblioteca Virtual Miguel de Cervantes. Then, the python script generates a ramdon list of authors which has been used for this criterion.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdac: <http://rdaregistry.info/Elements/c/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?s ?viafid WHERE {
?s rdf:type rdac:Person.
?s owl:sameAs ?viafid.
FILTER(regex(str(?viafid), "viaf" ) )
}
LIMIT 20000

SPARQL query to retrieve a list of authors from the Bibliothèque nationale de France. Then, the python script generates a ramdon list of authors which has been used for this criterion.

SELECT DISTINCT ?s ?viafid
WHERE { ?s a foaf:Person .
?s owl:sameAs ?viafid.
FILTER(regex(str(?viafid), "viaf" ) )
}
LIMIT 100000

SPARQL query to retrieve a list of authors from the Biblioteca Nacional de España. Then, the python script generates a ramdon list of authors which has been used for this criterion.

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix ns2: <http://datos.bne.es/def/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT distinct ?s ?viafid WHERE {
?s rdf:type ns2:C1005.
?s owl:sameAs ?viafid.
FILTER(regex(str(?viafid), "viaf" ) )
}
LIMIT 100000

SPARQL query to retrieve a list of authors from the British National Bibliography. Then, the python script generates a ramdon list of authors which has been used for this criterion.

PREFIX bio: <http://purl.org/vocab/bio/0.1/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT DISTINCT ?viaf ?author WHERE {
    ?event a bio:Birth.
    ?author bio:event ?event.
    ?author owl:sameAs ?viaf.
}

LIMIT 100000
You can’t perform that action at this time.