Skip to content

Instantly share code, notes, and snippets.

@antoinecourtin
Last active November 12, 2016 18:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antoinecourtin/6f0e346320e2c405604b to your computer and use it in GitHub Desktop.
Save antoinecourtin/6f0e346320e2c405604b to your computer and use it in GitHub Desktop.
select ?student ?s_name ?s_bio ?rel ?teacher ?t_name ?t_bio {
{select * {
values ?rel {gvp:ulan1108_influenced_by gvp:ulan1112_master_was}
?student ?rel ?teacher}}
filter exists {values ?nationality {aat:300111188}
?student foaf:focus/(schema:nationality|(schema:nationality/gvp:broaderExtended)) ?nationality}
filter exists {?student gvp:agentType|(gvp:agentType/gvp:broaderExtended) aat:300025164}
filter exists {?student foaf:focus/gvp:biographyPreferred/gvp:estStart ?s_birth.
filter("1500"^^xsd:gYear < ?s_birth && ?s_birth <= "1950"^^xsd:gYear)}
?student gvp:prefLabelGVP [xl:literalForm ?s_name];
foaf:focus [gvp:biographyPreferred [schema:description ?s_bio]].
?teacher gvp:prefLabelGVP [xl:literalForm ?t_name];
foaf:focus [gvp:biographyPreferred [schema:description ?t_bio]].
} order by ?t_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment