This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": "http://schema.org", | |
| "@type": "Dataset", | |
| "distribution": { | |
| "@type": "DataDownload", | |
| "url" : "http://foo.org/datasets/set1.jsonld" | |
| } | |
| "spatial" : { | |
| "@type": "Place", | |
| "geo": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from creepy import Crawler | |
| # todo: write to a file, filter out the css related triples | |
| class MyCrawler(Crawler): | |
| def process_document(self, doc): | |
| if doc.status == 200: | |
| #print '[%d] %s' % (doc.status, doc.url) | |
| # There is also doc.text one could work with | |
| packet = urllib.quote_plus(doc.url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library iodputil; | |
| import 'dart:html'; | |
| import "dart:json"; | |
| class iodputil { | |
| String encodeComponent(String component) { | |
| if (component == null) return component; | |
| return component.replaceAll(':', '%3A') | |
| .replaceAll('/', '%2F') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": { | |
| "dc": "http://purl.org/dc/elements/1.1/", | |
| "xsd": "http://www.w3.org/2001/XMLSchema#" | |
| }, | |
| "_links": { | |
| "IMLGS": { | |
| "href": "http://www.ngdc.noaa.gov/geosamples/", "media-type": "text/html" | |
| }, | |
| "IODP": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "@context": { | |
| "dc": "http://purl.org/dc/elements/1.1/", | |
| "xsd": "http://www.w3.org/2001/XMLSchema#" | |
| }, | |
| "@graph": [ | |
| { | |
| "@id": "http://data.oceandrilling.org/janus/parameter/sampleCount/201/1225/1313", | |
| "@type": [ | |
| "http://www.coreref.org/drilling/1/coredata", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| // Reads in a file formated like" | |
| // 8,9,5 // string1, string2, weightInt | |
| // where string1 is a node, string 2 is a node connected | |
| // to string1 by weightInt | |
| // Needs a way to enter the key value relation for | |
| // string1 and string2 (which is not in the data file right now) | |
| import ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <link rel="stylesheet" href="./bootstrap/css/bootstrap.css"> | |
| <link href="https://google-developers.appspot.com/maps/documentation/javascript/examples/default.css" | |
| rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { "head": { "link": [], "vars": ["leg", "site", "param", "count"] }, | |
| "results": { "distinct": false, "ordered": true, "bindings": [ | |
| { "leg": { "type": "literal", "value": "201" } , "site": { "type": "literal", "value": "1225" } , "param": { "type": "uri", "value": "http://data.oceandrilling.org/core/1/janus/totalCore" } , "count": { "type": "typed-literal", "datatype": "http://www.w3.org/2001/XMLSchema#integer", "value": "69" }}, | |
| { "leg": { "type": "literal", "value": "201" } , "site": { "type": "literal", "value": "1225" } , "param": { "type": "uri", "value": "http://data.oceandrilling.org/core/1/janus/sampleCount" } , "count": { "type": "typed-literal", "datatype": "http://www.w3.org/2001/XMLSchema#integer", "value": "3446" }}, | |
| { "leg": { "type": "literal", "value": "201" } , "site": { "type": "literal", "value": "1225" } , "param": { "type": "uri", "value": "http://data.oceandrilling.org/core/1/janus/msl_section" } , "count": { "type": "typed-literal", "datatype": "http://www.w3.org/2001/XM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:mustache/mustache.dart' as mustache; | |
| void main() { | |
| var legSet = [{'legnumber': 207, 'is_last': false}, {'legnumber': 208, 'is_last': false}, {'legnumber': 209, 'is_last': false}, {'legnumber': 210, 'is_last': true}]; | |
| var source = (""" | |
| SELECT DISTINCT ?slice | |
| FROM <http://data.oceandrilling.org/janus/> | |
| WHERE { |
NewerOlder