Skip to content

Instantly share code, notes, and snippets.

Avatar
👹
Ducking and diving

Daniel Pett portableant

👹
Ducking and diving
View GitHub Profile
View RIC Lists
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX nm: <http://nomisma.org/id/>
SELECT *
WHERE {
?type a nm:type_series_item .
?type dcterms:isPartOf <http://nomisma.org/id/ric> .
?type skos:prefLabel ?label .
View RRC lists
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX nm: <http://nomisma.org/id/>
SELECT *
WHERE {
?type a nm:type_series_item .
?type dcterms:isPartOf <http://nomisma.org/id/rrc>.
?type skos:prefLabel ?label .
View gist:9914316
@prefix cito: <http://purl.org/spar/cito> .
@prefix cnt: <http://www.w3.org/2011/content> .
@prefix dc: <http://purl.org/dc/terms> .
@prefix lawd: <http://lawd.info/ontology> .
<http://edh-www.adw.uni-heidelberg.de/resources/people/HD000001/1>
a lawd:Person ;
dc:publisher <http://edh-www.adw.uni-heidelberg.de> ;
lawd:hasName <http://edh-www.adw.uni-heidelberg.de/resources/people/HD000001/1#name> ;
lawd:hasAttestation <http://edh-www.adw.uni-heidelberg.de/resources/people/HD000001/1#attestation> .
@portableant
portableant / TaskrunsPybossa
Created Apr 8, 2014
This is an example output from the task run for drawB16
View TaskrunsPybossa
[{"info": {"weight": "", "patina": "", "site": "", "surface": "", "toSearch": "", "dateDiscoveryMonth": "None", "objectType": "", "gridRef": "", "geojson": {"geometry": {"type": "Point", "coordinates": [-3.2765753, 54.70235449999999]}, "crs": {"type": "name", "properties": {"name": "urn:ogc:def:crs:OGC:1.3:CRS84"}}, "type": "Feature", "properties": {}}, "thickness": "", "width": "", "other": "", "composition": "", "optionsAccuracy": "100", "associations": "", "description": "", "collection": "", "dateDiscoveryDay": "None", "remarks": "", "dateDiscoveryYear": "None", "rightCorner": "", "length": "", "edge": "", "publications": ""}, "user_id": null, "task_id": 3290, "created": "2014-03-26T11:44:43.447307", "finish_time": "2014-03-26T11:44:43.447324", "calibration": null, "app_id": 17, "user_ip": "82.43.50.83", "timeout": null, "id": 124}, {"info": {"weight": "", "patina": "", "site": "", "surface": "", "toSearch": "", "dateDiscoveryMonth": "None", "objectType": "test 2", "gridRef": "", "geojson": {"geometry": {
View loginRedirect.sql
CREATE TABLE `loginRedirect` (
'id' int(11) NOT NULL auto_increment,
'uri' text collate utf8_unicode_ci,
'alias' varchar(100) NOT NULL,
'userID' int(11) NOT NULL,
'created' datetime default NULL,
'createdBy' int(11) NOT NULL,
'updated' datetime default NULL,
'updatedBy' int(11) NOT NULL,
PRIMARY KEY ('id'),
@portableant
portableant / AccountController.php
Last active Aug 29, 2015
Action Helper for login redirect
View AccountController.php
<?php
/** Stripped back the controller
* This shows where the action helper would go
*/
public function successAction(){
if(null === $this->_auth->getIdentity()) {
$this->view->headTitle('Login to the system');
$form = new LoginForm();
$this->view->form = $form;
if ($this->_request->isPost()) {
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View angloSaxon.txt
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX fts: <http://www.ontotext.com/owlim/fts#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT *
where
{
@portableant
portableant / wodenBM.txt
Last active Aug 29, 2015
Sparql query to get Woden depictions between 410 and 1100 AD in BEP collection
View wodenBM.txt
#Early medieval
PREFIX crm: <http://erlangen-crm.org/current/> #Prefix for the CIDOC-CRM
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> #Prefix for SKOS terminologies
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/> #British Museum Ontology PX_
PREFIX fts: <http://www.ontotext.com/owlim/fts#> #OWLIM Fast Text serach
PREFIX ecrm: <http://erlangen-crm.org/current/>
@portableant
portableant / ricepops.json
Created Jan 15, 2015
Flickr response for Andy
View ricepops.json
{"photoset":{"id":"72157649825413560","primary":"15631285654","owner":"115096994@N02","ownername":"MicroPasts","photo":[{"id":"15631285654","secret":"460892781d","server":"7526","farm":8,"title":"dei_census_1930_v1_table1_Page_1","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0,"originalsecret":"718180ed86","originalformat":"jpg"},{"id":"16066315920","secret":"404531b1cb","server":"7575","farm":8,"title":"dei_census_1930_v1_table1_Page_2","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0,"originalsecret":"c0bd1058bf","originalformat":"jpg"},{"id":"16066160728","secret":"3edf56c42e","server":"7579","farm":8,"title":"dei_census_1930_v1_table1_Page_3","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0,"originalsecret":"8d69169a04","originalformat":"jpg"},{"id":"16067551169","secret":"95ea594cb8","server":"7482","farm":8,"title":"dei_census_1930_v1_table1_Page_4","isprimary":"0","ispublic":1,"isfriend":0,"isfamily":0,"originalsecret":"d2fd393d8c","originalformat":"jpg"},{"id":"16252856792","secret"