Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

These examples show how to count the entities in your VIVO that do not have labels.  

Code Block
titleFind Agents without labels
SELECT count(?s)
WHERE {
    ?s rdf:type foaf:Agent .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}
Code Block
titleCount grants without labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:Grant .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}

 

 

Code Block
titleCount Positions without labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:Position .
    OPTIONAL {?s rdfs:label ?label .}
	FILTER(!bound(?label))
}
Code Block
titleCount Publications without Labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:InformationResource .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}