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
function absolutifyUrls(data, sourceUrl) { | |
var relRe = /:\/\//; | |
var domainRe = /.*?\/\/[^?/]*/; | |
var pathRe = /.*\//; | |
if (sourceUrl.length-sourceUrl.replace(/\//g,"").length==2) { | |
sourceUrl += "/"; | |
} | |
if (typeof(data)=="string") { | |
data = jQuery("<div>"+data+"</div>"); | |
} else if (typeof(data)=="object") { |
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
CmdUtils.CreateCommand({ | |
name: "prefix", | |
takes: {"term": noun_arb_text}, | |
homepage: "http://kwijibo.talis.com/", | |
author: { name: "Keith Alexander", email: "[email protected]"}, | |
license: "MPL", | |
description: "performs a lookup on prefix.cc (http://prefix.cc/)", | |
preview: function(previewBlock, term) { | |
previewBlock.innerHTML = "looking up " + term.text ; |
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
CmdUtils.CreateCommand({ | |
name: "schemacache", | |
takes: {"term": noun_arb_text}, | |
homepage: "http://schemacache.com/", | |
author: { name: "Keith Alexander", email: "[email protected]"}, | |
license: "MPL", | |
description: "performs a lookup on SchemaCache (http://schemacache.com)", | |
preview: function(previewBlock, term) { | |
previewBlock.innerHTML = "Looking up " + term.text + " at SchemaCache ... "; |
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
CmdUtils.CreateCommand({ | |
name: "openvocab-property", | |
takes: {"term": noun_arb_text}, | |
homepage: "http://kwijibo.talis.com/", | |
author: { name: "Keith Alexander", email: "[email protected]"}, | |
license: "MPL", | |
description: "Brings up the form to edit or create a property named after the selected or inputed text on http://open.vocab.org. nb: propertiesmost be lower case", | |
buildUrl: function(term){ | |
var uri = "http://open.vocab.org/terms/"+term.text.replace('/ /g', ''); |
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
/* This is a template command. */ | |
CmdUtils.CreateCommand({ | |
name: "show sparql query", | |
icon: "http://swik.net/swikIcons/img-228-96x96.jpg", | |
homepage: "http://kwijibo.talis.com/", | |
author: {name: "Keith Alexander", email: "[email protected]"}, | |
license: "GPL", | |
description: "Showw the sparql query from the current url", | |
help: "How to use your command", | |
takes: {"input": /.*/}, |
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
(function(){ | |
var mappings = { | |
"foaf": "http:\/\/xmlns.com\/foaf\/0.1\/", | |
"dc": "http:\/\/purl.org\/dc\/terms\/", | |
"rdf": "http:\/\/www.w3.org\/1999\/02\/22-rdf-syntax-ns#", | |
"rdfs": "http:\/\/www.w3.org\/2000\/01\/rdf-schema#", | |
"owl": "http:\/\/www.w3.org\/2002\/07\/owl#", | |
"geonames": "http:\/\/www.geonames.org\/ontology#", | |
"geo": "http:\/\/www.w3.org\/2003\/01\/geo\/wgs84_pos#", | |
"skos": "http:\/\/www.w3.org\/2004\/02\/skos\/core#", |
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
<?php | |
define('DCT_DESCRIPTION', 'http://purl.org/dc/terms/description'); | |
define('MORIARTY_ARC_DIR', 'arc/'); | |
define('MORIARTY_ALWAYS_CACHE_EVERYTHING', 'cache'); | |
define('MORIARTY_HTTP_CACHE_DIR', 'cache'); | |
define('VOID_NS', 'http://rdfs.org/ns/void#'); | |
define('VOID_SPARQL', VOID_NS.'sparqlEndpoint'); | |
define('VOID_EXAMPLE', VOID_NS.'exampleResource'); | |
define('API','http://purl.org/linked-data/api/vocab#' ); |
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
<?php | |
define('DCT_DESCRIPTION', 'http://purl.org/dc/terms/description'); | |
define('MORIARTY_ARC_DIR', 'arc/'); | |
define('MORIARTY_ALWAYS_CACHE_EVERYTHING', 'cache'); | |
define('MORIARTY_HTTP_CACHE_DIR', 'cache'); | |
define('VOID_NS', 'http://rdfs.org/ns/void#'); | |
define('VOID_SPARQL', VOID_NS.'sparqlEndpoint'); | |
define('VOID_EXAMPLE', VOID_NS.'exampleResource'); | |
define('API','http://purl.org/linked-data/api/vocab#' ); |
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
{ | |
"http:\/\/linkedscotland.org\/def\/percentage_of_households_within_0_30_minutes_drive_time_of_a_college_of_higher_or_further_education": { | |
"http:\/\/reference.data.gov.uk\/id\/year\/2001": { | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/100": "100", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/110": "52.6", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/120": "95.6", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/130": "13.4", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/150": "100", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/170": "54.7", | |
"http:\/\/linkedscotland.org\/id\/geography\/local-authority\/180": "100", |
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
<?xml version="1.0" encoding="utf-8"?> | |
<result format="linked-data-api" version="0.2" href="http://linkedscotland.org/doc/concepts/sns/registered_blind_sns_upload_2005.xml"> | |
<primaryTopic href="http://linkedscotland.org/concepts/sns/registered_blind_sns_upload_2005"> | |
<scheme href="http://linkedscotland.org/concepts/sns/"/> | |
<label xml:lang="en-gb">Registered Blind SNS Upload 2005</label> | |
<type href="http://www.w3.org/2004/02/skos/core#Concept"/> | |
<isTopicOf> | |
<item href="http://linkedscotland.org/id/dataset/CA-NRPS515pop05"/> | |
<item href="http://linkedscotland.org/id/dataset/CA-NRB51505"/> | |
<item href="http://linkedscotland.org/id/dataset/CA-blindtotpop05"/> |
OlderNewer