Skip to content

Instantly share code, notes, and snippets.

View ncarboni's full-sized avatar

Nicola Carboni ncarboni

View GitHub Profile
@ncarboni
ncarboni / type.ttl
Created January 8, 2019 11:14
Modelling of a E55 Type in CIDOC-CRM
@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 / exhibition.ttl
Last active May 20, 2019 12:52
Model of an exhibition in CIDOC-CRM
@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#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix geo: <http://www.opengis.net/ont/geosparql#>.
<https://example.com/event/exhibition/1> a crm:E7_Activity ;
crm:p1_is_identified_by <https://example.com/appellation/33> ;
crm:p4_has_time-span <https://example.com/timespan/10> ;
@ncarboni
ncarboni / provenance.ttl
Created January 8, 2019 16:21
Modelling of provenance information with CIDOC-CRM
@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#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<https://example.com/work/663763> a crm:E22_Man-made-object ;
crm:P24i_changed_ownership_through <https://example.com/acquisition/22734637> ;
crm:P24i_changed_ownership_through <https://example.com/acquisition/22734638> ;
crm:P24i_changed_ownership_through <https://example.com/acquisition/22734639> .
@prefix ontolex: <http://www.w3.org/ns/lemon/ontolex#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix lexinfo: <http://www.lexinfo.net/ontology/2.0/lexinfo#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix frbroo: <http://iflastandards.info/ns/fr/frbr/frbroo/> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix crmpc: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix vir: <http://w3id.org/vir#> .
@prefix inf: <http://www.cidoc-crm.org/cidoc-crm/CRMinf/> .
@prefix ldp: <http://www.w3.org/ns/ldp#> .
@ncarboni
ncarboni / associative_properties_gvp.ttl
Created January 6, 2020 11:55
Example of use of GVP associative properties for a term.
aat:300003960 a gvp:Subject , skos:Concept , gvp:Concept ;
skos:related aat:300375097 , aat:300052411 , aat:300003961 ;skos:related aat:300375097 , aat:300052411 , aat:300003961 ;
gvp:aat2100_distinguished_from aat:300375097 , aat:300003961 .
@ncarboni
ncarboni / gnd_entityfacts_coordinates.ttl
Last active March 19, 2020 08:57
GND EntityFacts coordinates
@prefix dc: <http://purl.org/dc/terms/> .
@prefix geojson: <https://purl.org/geojson/vocab#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<https://d-nb.info/gnd/4050471-2>
a <https://d-nb.info/standards/elementset/gnd#PlaceOrGeographicName> ;
dc:spatial [
a <https://purl.org/geojson/vocab#Feature> ;
geojson:geometry [
a geojson:Point ;
@ncarboni
ncarboni / GND_entityfact_same_as_encoding.ttl
Last active March 19, 2020 09:05
GND EntityFacts encoding of sameness
@prefix gnd: <https://d-nb.info/standards/elementset/dnb#> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dc11: <http://purl.org/dc/elements/1.1/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <http://schema.org/> .
<https://d-nb.info/gnd/4050471-2/about> gnd:isDescribedIn [
@ncarboni
ncarboni / ULAN_encoding_sameness.ttl
Created March 18, 2020 10:45
ULAN encoding sameness
ulan:500035452 a gvp:Subject , skos:Concept , gvp:PersonConcept ;
skos:exactMatch <http://id.loc.gov/authorities/names/nb98021061> ;
skos:closeMatch <http://id.loc.gov/authorities/names/nb98021061> .
@ncarboni
ncarboni / LOC_encoding_sameness.nt
Last active March 18, 2020 10:52
LOC sameness encoding
#record 1
<http://id.loc.gov/authorities/names/no2012024999> <http://www.loc.gov/mads/rdf/v1#hasCloseExternalAuthority> <http://www.wikidata.org/entity/Q4885699> .
#record 2 - Rome
<http://id.loc.gov/authorities/names/n79018704> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://viaf.org/viaf/sourceID/LC%7Cn++79018704#skos:Concept> .
<http://id.loc.gov/authorities/names/n79018704> <http://www.loc.gov/mads/rdf/v1#hasCloseExternalAuthority> <http://id.worldcat.org/fast/1346395> .
#record 3 - Michelangelo Buonarroti
<http://id.loc.gov/authorities/names/n80152368> <http://www.w3.org/2004/02/skos/core#exactMatch> <http://viaf.org/viaf/sourceID/LC%7Cn++80152368#skos:Concept> .
<http://id.loc.gov/authorities/names/n80152368> <http://www.w3.org/2004/02/skos/core#closeMatch> <http://www.wikidata.org/entity/Q5592> .