Skip to content

Instantly share code, notes, and snippets.

@ncarboni
ncarboni / gist:e44e746a5716b48e14ea
Last active Aug 29, 2015
Applescript for automatically send message with Orange Flag to omnifocus (with link to the original message in note) and change the flag to Yellow
View gist:e44e746a5716b48e14ea
on run
-- based on Hunter Hillegas' original script at https://github.com/HunterHillegas/OmniFocusMailFlags
-- and on David Timothy Duval https://gist.github.com/dtduval/7866363
if application "Mail" is running then tell application "Mail"
set _msgs_to_capture to (every message of inbox whose flag index is 1)
repeat with eachMessage in _msgs_to_capture
set theStart to missing value
set theDue to missing value
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ncarboni
ncarboni / feature.ttl
Created Jan 7, 2019
Modelling of a watermark and a signature in CIDOC-CRM
View feature.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<https://example.sikart.ch/work/6004987> a crm:E22_Man-Made_Object ;
crm:P56_bears_feature <https://example.sikart.ch/6004987/feature/1> , <https://example.sikart.ch/6004987/feature/2> .
<https://example.sikart.ch/6004987/feature/1> a crm:E26_Physical_Feature ;
crm:P128_carries <https://example.sikart.ch/text_object/1> ;
@ncarboni
ncarboni / roles.ttl
Created Jan 8, 2019
Modelling of roles in an activity with CIDOC-CRM
View roles.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<http://example.com/exhibition/177> a crm:E7_Activity ;
crm:P01i_is_domain_of <http://example.com/curation/0766> .
<http://example.com/curation/0766> a crm:PC14_carried_out_by ;
crm:p02_has_range <http://example.com/person/134> , <http://example.com/person/135> ;
@ncarboni
ncarboni / notes.ttl
Created Jan 8, 2019
Modelling of notes in CIDOC-CRM
View notes.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<http://example.com/person/134> a crm:E21_Person ;
crm:P01i_is_domain_of <http://example.com/note/123> ;
crm:P3_has_note "Kommissär der Eidgen. Kunstkommission" .
<http://example.com/note/123> a crm:PC3_has_note ;
@ncarboni
ncarboni / identifier.ttl
Created Jan 8, 2019
Modelling of an identifier in CIDOC-CRM
View identifier.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<http://example.com/500020981> a crm:E21_Person ;
crm:P1_is_identified_by <http://example.com/identifier/500020981> .
<https://collection.itatti.harvard.edu/resource/identifier/500020981> a crm:E42_Identifier ;
rdfs:label "500020981" ;
@ncarboni
ncarboni / type.ttl
Created Jan 8, 2019
Modelling of a E55 Type in CIDOC-CRM
View type.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<http://example.com/work/7761> a crm:E22_Man-Made_Object ;
crm:P2_has_type <http://vocab.getty.edu/aat/300033618> .
<http://vocab.getty.edu/aat/300033618> a crm:E55_Type .
@ncarboni
ncarboni / production_role.ttl
Last active Jan 8, 2019
Modelling of the role of an agent in a production event with CIDOC-CRM
View production_role.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<https://example.com/production_activity/17762> a crm:E12_Production ;
crm:P01i_is_domain_of <http://example.com/production/0766> .
<http://example.com/production/0766> a crm:PC14_carried_out_by ;
crm:p02_has_range <http://example.com/person/134> ;
@ncarboni
ncarboni / agency.ttl
Last active Jan 8, 2019
The agency in the activity modelled with CIDOC-CRM
View agency.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<https://example.com/work/6004987> a crm:E22_Man-Made_Object ;
crm:P16i_was_used_for <https://example.sikart.ch/publication_activity/1> .
<https://example.com/publication_activity/1> a crm:E7_Activity ;
crm:P14_carried_out_by <https://example.sikart.ch/person/135> .
@ncarboni
ncarboni / technique.ttl
Last active Jan 8, 2019
Modelling of a technique with CIDOC-CRM
View technique.ttl
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://http://www.cidoc-crm.org/cidoc-crm/> .
@prefix sari: <http://w3id.org/sari#> .
<https://example.com/work/6004987> a crm:E22_Man-Made_Object ;
crm:P108i_was_produced_by <https://example.sikart.ch/production_activity/1> .
<https://example.com/production_activity/1> a crm:E12_Production ;
crm:P33_used_specific_technique <https://example.sikart.ch/technique/1> .
You can’t perform that action at this time.