Skip to content

Instantly share code, notes, and snippets.

Avatar
👹
Ducking and diving

Daniel Pett portableant

👹
Ducking and diving
View GitHub Profile
View lateRomanHoards.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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 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.
@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/>
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
{