diff --git a/lib/Tuba/Doc.pm b/lib/Tuba/Doc.pm index 6f5b4d14..dd3851d9 100644 --- a/lib/Tuba/Doc.pm +++ b/lib/Tuba/Doc.pm @@ -19,7 +19,7 @@ sub examples { my $sparql = [ { desc => "List URLs for 10 figures.", code => -"select * FROM +"select * FROM where { ?s a gcis:Figure } limit 10", }, @@ -30,7 +30,7 @@ PREFIX dcterms: PREFIX cito: PREFIX dbpprop: -select ?s FROM where { +select ?s FROM where { ?s a gcis:AcademicArticle . ?s cito:isCitedBy ?nca3 . ?nca3 dcterms:identifier "nca3" . @@ -46,7 +46,7 @@ PREFIX dcterms: PREFIX cito: PREFIX dbpprop: -select min(?pubYear as ?Publication_Year) FROM where { +select min(?pubYear as ?Publication_Year) FROM where { ?s cito:isCitedBy ?nca3 . ?nca3 dcterms:identifier "nca3" . ?s dbpprop:pubYear ?pubYear @@ -55,7 +55,7 @@ SPARQL2 }, { desc => "List 10 figures and datasets from which they were derived.", code => -"select ?figure ?dataset FROM +"select ?figure ?dataset FROM where { ?figure gcis:hasImage ?img . ?img prov:wasDerivedFrom ?dataset diff --git a/lib/Tuba/files/templates/doc/examples.html.ep b/lib/Tuba/files/templates/doc/examples.html.ep index 6fc88f6f..57eca51b 100644 --- a/lib/Tuba/files/templates/doc/examples.html.ep +++ b/lib/Tuba/files/templates/doc/examples.html.ep @@ -20,19 +20,19 @@ using command line tools such as curl.

See the structure of the third national climate assessment.

-$ curl http://data.globalchange.gov/report/nca3.yaml
+$ curl https://data.globalchange.gov/report/nca3.yaml
 

Get a list of chapters in the third national climate assessment.

-$ curl http://data.globalchange.gov/report/nca3/chapter.json
+$ curl https://data.globalchange.gov/report/nca3/chapter.json
 

Requests can be made either using the suffix or using content negotiation.

Get the first 20 figures in the third national climate assessment.

-$ curl -H 'Accept: application/json' http://data.globalchange.gov/report/nca3/figure
+$ curl -H 'Accept: application/json' https://data.globalchange.gov/report/nca3/figure
 

For the complete list of endpoints, as well as the valid Accept headers, please @@ -61,7 +61,7 @@ some of the ones below.

target="_blank">Yasgui is a modern SPARQL query editor.

-LOD live +LOD live is a tool for visually exploring semantic relationships.

Applications