Skip to content

Instantly share code, notes, and snippets.

View ashepherd's full-sized avatar

Adam Shepherd ashepherd

View GitHub Profile
@ashepherd
ashepherd / BCO-DMO with PROV and O&M
Last active August 29, 2015 14:02
BCO-DMO using PROV / O&M
<http://lod.bco-dmo.org/id/project/10> a odo:Project;
a prov:Activity;
.
<http://lod.bco-dmo.org/id/cruise/1> a odo:Cruise;
a prov:Activity;
odo:ofPlatform <http://lod.bco-dmo.org/id/vessel/2>;
odo:hasDeploymentDates <http://lod.bco-dmo.org/id/cruise/1#startEndDates>;
prov:wasAssociatedWith <http://lod.bco-dmo.org/id/person/3>;
prov:qualifiedAssociation http://lod.bco-dmo.org/id/person-role/4>;
@ashepherd
ashepherd / L05_terms.rq
Created August 13, 2015 12:55
List URI and term name for all terms in the L05 NERC vocabulary
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT distinct ?entrykey ?entryterm
WHERE {
<http://vocab.nerc.ac.uk/collection/L05/current/> skos:member ?entrykey .
?entrykey skos:prefLabel ?entryterm
}
select ?r as ?role ?s as ?subject ?d as ?dataset
WHERE {
GRAPH <http://www.bco-dmo.org/> {
?p dcterms:identifier ?id .
FILTER (str(?id) = '50974')
?r odo:performedBy ?p
FILTER NOT EXISTS { ?r odo:forOrganization ?o . }
?r dcterms:subject ?s .
PREFIX gl: <http://schema.geolink.org/1.0/base/main#>
SELECT DISTINCT ?cruise ?role ?person ?match ?id_value ?id_scheme ?id_uri ?person_full_name ?email_address
#?abstract ?cruise_track
WHERE {
{
?cruise a gl:Cruise .
?person ?role ?cruise .
?person a gl:Person .
@ashepherd
ashepherd / gist:6ac8145200fab5c2d6bbe01d60c40b0d
Created June 29, 2016 15:36
GeoLink: Cruise > Physical Samples
PREFIX gl: <http://schema.geolink.org/1.0/base/main#>
SELECT DISTINCT ?cruise ?sample ?id_value ?id_scheme ?id_uri ?registration_date ?publication_date ?last_updated_date ?elevation_desc ?feature_of_interest ?feature_of_interest_name ?feature_type ?feature_type_name ?geologic_age ?geologic_age_name ?stratigraphic_unit ?stratigraphic_unit_name ?originates_from ?collection_start_date ?collection_end_date ?person ?role ?person_name ?dataset ?sample_type ?sample_type_name ?wkt
WHERE {
{
?sample a gl:PhysicalSample .
?sample gl:hasCruise ?cruise .
?cruise a gl:Cruise .
{