Skip to content

cyber4paleo/c4ptardis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C4P TARDIS

Info

Please see the included PDF with this repository for a visual view of what was done in team TARDIS.

RDF scratch pad

# tag: maxage
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
prefix iodp: <http://data.oceandrilling.org/core/1/> 
prefix foaf: <http://xmlns.com/foaf/0.1/> 
prefix owl: <http://www.w3.org/2002/07/owl#> 
prefix xsd: <http://www.w3.org/2001/XMLSchema#> 
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> 
SELECT (MAX(?age) AS ?maxage) (MIN(?age) AS ?minage)
WHERE {
   ?s iodp:leg "192" .
   ?s iodp:ma ?age   .
}
# tag: query2
PREFIX chronos: <http://www.chronos.org/loc-schema#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
SELECT  ?dataset ?ob  ?age ?depth ?long ?lat
FROM <http://chronos.org/janusamp#>
WHERE {
  ?ob chronos:age ?age . 
  ?ob chronos:depth ?depth . 
  ?ob <http://purl.org/linked-data/cube#dataSet>  ?dataset .
  ?dataset geo:long ?long .
  ?dataset geo:lat ?lat .
   ?dataset chronos:leg "{{.Leg}}" .  
   ?dataset chronos:site "{{.Site}}" .
   ?dataset chronos:hole "{{.Hole}}" . 
}
ORDER BY ?dataset DESC(?age)
LIMIT 1
# tag: csiro
prefix gts: <http://resource.geosciml.org/ontology/timescale/gts#> 
prefix thors: <http://resource.geosciml.org/ontology/timescale/thors#> 
prefix tm: <http://def.seegrid.csiro.au/isotc211/iso19108/2002/temporal>
PREFIX isc: <http://resource.geosciml.org/classifier/ics/ischart/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT *
WHERE {
                 ?era gts:rank ?rank .
                 ?era thors:begin/tm:temporalPosition/tm:value ?begin .
                 ?era thors:begin/tm:temporalPosition/tm:frame <http://resource.geosciml.org/classifier/cgi/geologicage/ma> .
                 ?era thors:end/tm:temporalPosition/tm:value ?end .
                 ?era thors:end/tm:temporalPosition/tm:frame <http://resource.geosciml.org/classifier/cgi/geologicage/ma> .
                 ?era rdfs:label ?name .
                 BIND ( "439."^^xsd:decimal AS ?targetAge )
                 FILTER ( ?targetAge > xsd:decimal(?end) )
                 FILTER ( ?targetAge < xsd:decimal(?begin) )
}
<http://host.geolink.org/sesar/id/dataset/ffaf89d9-8e7f-4770-b049-224d87eb2850>
    a <http://schema.geolink.org/1.0/base/main#Dataset> ;
    rdfs:label "RC1307, Coring>PistonCorer"
    geolink:hasCruise <http://lod.bco-dmo.org/geolink/id/deployment/57413>
    geolink:hasTitle
    geolink:hasAbstract

Encoded CSIRO call

http://resource.geosciml.org/sparql/isc2014?query=PREFIX+isc%3A+%3Chttp%3A%2F%2Fresource.geosciml.org%2Fclassifier%2Fics%2Fischart%2F%3E%0D%0APREFIX+gts%3A+%3Chttp%3A%2F%2Fresource.geosciml.org%2Fontology%2Ftimescale%2Fgts%23%3E%0D%0APREFIX+thors%3A+%3Chttp%3A%2F%2Fresource.geosciml.org%2Fontology%2Ftimescale%2Fthors%23%3E%0D%0APREFIX+tm%3A+%3Chttp%3A%2F%2Fdef.seegrid.csiro.au%2Fisotc211%2Fiso19108%2F2002%2Ftemporal%23%3E%0D%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0D%0A%0D%0ASELECT+%2A%0D%0AWHERE+%7B%0D%0A++++++++++++++++%3Fera+gts%3Arank+%3Frank+.%0D%0A+++++++++++++++++%3Fera+thors%3Abegin%2Ftm%3AtemporalPosition%2Ftm%3Avalue+%3Fbegin+.%0D%0A+++++++++++++++++%3Fera+thors%3Abegin%2Ftm%3AtemporalPosition%2Ftm%3Aframe+%3Chttp%3A%2F%2Fresource.geosciml.org%2Fclassifier%2Fcgi%2Fgeologicage%2Fma%3E+.%0D%0A+++++++++++++++++%3Fera+thors%3Aend%2Ftm%3AtemporalPosition%2Ftm%3Avalue+%3Fend+.%0D%0A+++++++++++++++++%3Fera+thors%3Aend%2Ftm%3AtemporalPosition%2Ftm%3Aframe+%3Chttp%3A%2F%2Fresource.geosciml.org%2Fclassifier%2Fcgi%2Fgeologicage%2Fma%3E+.%0D%0A++++++++++++++++%3Fera+rdfs%3Alabel+%3Fname+.%0D%0A+++++++++++++++++BIND+%28+%22439.%22%5E%5Exsd%3Adecimal+AS+%3FtargetAge+%29%0D%0A+++++++++++++++++FILTER+%28+%3FtargetAge+%3E+xsd%3Adecimal%28%3Fend%29+%29%0D%0A+++++++++++++++++FILTER+%28+%3FtargetAge+%3C+xsd%3Adecimal%28%3Fbegin%29+%29%0D%0A%7D%0D%0A

About

Holds work done related to applying geologic timescale stage names to resources done during C4P Boulder meeting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages