You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Outdated

This material pertains to outdated versions of VIVO. Rather than archiving the material, it should be updated to reflect current versions of VIVO.

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

Count agents without labels
SELECT count(?s)
WHERE {
    ?s rdf:type foaf:Agent .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}
Count grants without labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:Grant .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}
Count positions without labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:Position .
    OPTIONAL {?s rdfs:label ?label .}
	FILTER(!bound(?label))
}
Count publications without labels
SELECT count(?s)
WHERE {
    ?s rdf:type vivo:InformationResource .
    OPTIONAL {?s rdfs:label ?label .}
    FILTER(!bound(?label))
}
  • No labels