Skip to content

Instantly share code, notes, and snippets.

View ncarboni's full-sized avatar

Nicola Carboni ncarboni

View GitHub Profile
@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#> .
@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 / appellation.ttl
Last active July 8, 2019 20:49
Modelling of diverse types of appellations 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/500020981> a crm:E21_Person ;
crm:P1_is_identified_by <http://example.com/500020981/appellation/name> , <http://example.com/500020981/appellation/surname> , <http://example.com/500020981/appellation/full> .
<http://example.com/500020981/appellation/name>
a crm:E41_Appellation ;
@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 / 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> .
@ncarboni
ncarboni / geonames_coordinates.rdf
Created March 18, 2020 11:01
Geonames coordinates
<gn:Feature rdf:about="https://sws.geonames.org/3169070/">
<wgs84_pos:lat>41.89193</wgs84_pos:lat>
<wgs84_pos:long>12.51133</wgs84_pos:long>
<wgs84_pos:alt>20</wgs84_pos:alt>
</gn:Feature>
@ncarboni
ncarboni / ulan_encoding_labels.ttl
Last active March 19, 2020 08:41
ULAN encoding labels
ulan:500010654 a gvp:Subject , skos:Concept , gvp:PersonConcept ;
rdfs:label "Rota" , "Buonarroti, Michelangelo" , "Michelangelo Buonarroti" , "Michelangelo Buonarotti" , "Michelangelo" , "Michael Angelo" , "Michelagnolo di Lodovico Buonarroti Simoni" , "Michelagniolo di Lodovico de Lionardo di Buonarroto Simoni" , "Michelagniolo di Lodovico di Lionardo di Buonarroto Simoni" , "Buonarroti, Michel Angelo" , "Michelangelo di Lodovico di Lionardo di Buonarroto Simoni" , "Michelangelo di Ludovico Buonarroti" , "Michelangiolo" , "Buonarroti, Michelagniolo" , "Bonarroti, Michelangelo" , "Bonorotti, Michelangelo" , "Buonarota, Michelangelo" , "Michael Angelo Buonaroti" , "Michael Angelo Buonarotti" , "Michelagniolo Buonarroti" , "Michel-Ange" , "Michelagnolo Buonarotti" , "Michelagnolo Buonarruoti" , "Michelange Bonaroti" , "Michelang. o Bonarota" , "Michel Angel de Bonarrotta" , "Michelangelo Bonarota" , "Michelangelo Bonaroti" , "Michelangelo Buonarota" , "Michelangelo Buonaroti" , "Michelangelo Buonarrota" , "Mi
@ncarboni
ncarboni / label_gnd_json_ld.json
Created March 19, 2020 08:48
Labels GND json-ld
{
"@context": "https://hub.culturegraph.org/entityfacts/context/v1/entityfacts.jsonld",
"@id": "https://d-nb.info/gnd/118540238",
"preferredName": "Johann Wolfgang von Goethe",
"surname": "Goethe",
"prefix": "von",
"forename": "Johann Wolfgang",
"@type": "person",
"variantName": ["Johann Wolfgang Goethe", "Johan Wolfgang von Goethe", "Johan Wolphgang Goethe", "Johan W. von Goethe", "Joh. Wolfg. v. Goethe", "J. Wolfgang Goethe", "J. W. v. Goethe", "J. W. Goethe", "Jan Wolfgang Goethe", "Jean Wolfgang von Goethe", "Juan Wolfgang von Goethe", "Juan Wolfgang Goethe", "Juan W. Goethe", "João Wolfgang von Goethe", "Iohann Wolfgang Goethe", "Iohan Wolphgang Goethe", "Ioannes W. Goethe", "I. W. Goethe", "Wolfgango Goethe", "Wolfango Goethe", "W. von Goethe", "Volfgango Goethe", "Volfango Goethe", "Giov. L. Goethe", "G. L. Goethe", "Goethe", "Johann Wolfgang Von Goethe", "Goethius", "Johann W. êvonë Göthe", "Jan Wolfgang Göthe", "Jan Wolfang Göthe", "J. W. von Göthe", "Giov. Volfango Göthe", "Göthe", "Iogann V
@ncarboni
ncarboni / labels_gnd.ttl
Created March 19, 2020 08:49
Labels GND converted
<https://d-nb.info/gnd/118540238>
a <https://d-nb.info/standards/elementset/gnd#Person> ;
gnd:forename "Johann Wolfgang"^^xsd:string ;
gnd:preferredName "Johann Wolfgang von Goethe"^^xsd:string ;
gnd:prefix "von"^^xsd:string ;
gnd:surname "Goethe"^^xsd:string ;
gnd:variantName "Johann Wolfgang Goethe"^^xsd:string, "Johan Wolfgang von Goethe"^^xsd:string, "Johan Wolphgang Goethe"^^xsd:string, "Johan W. von Goethe"^^xsd:string, "Joh. Wolfg. v. Goethe"^^xsd:string, "J. Wolfgang Goethe"^^xsd:string, "J. W. v. Goethe"^^xsd:string, "J. W. Goethe"^^xsd:string, "Jan Wolfgang Goethe"^^xsd:string, "Jean Wolfgang von Goethe"^^xsd:string, "Juan Wolfgang von Goethe"^^xsd:string, "Juan Wolfgang Goethe"^^xsd:string, "Juan W. Goethe"^^xsd:string, "João Wolfgang von Goethe"^^xsd:string, "Iohann Wolfgang Goethe"^^xsd:string, "Iohan Wolphgang Goethe"^^xsd:string, "Ioannes W. Goethe"^^xsd:string, "I. W. Goethe"^^xsd:string, "Wolfgango Goethe"^^xsd:string, "Wolfango Goethe"^^xsd:string, "W. von Goethe"^^xsd:string, "V