Skip to content

Instantly share code, notes, and snippets.

Avatar

Ethan Gruber ewg118

  • American Numismatic Society
  • Charlottesville, Virginia
View GitHub Profile
@ewg118
ewg118 / die_pairings.sparql
Last active Dec 2, 2020
Get reverse dies paired with an obverse die, and then get the obverse dies paired with those reverse dies.
View die_pairings.sparql
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?die ?dieLabel ?altDie ?altDieLabel (count(?object) as ?count) WHERE {
BIND (<http://numismatics.org/rrdp/id/rrc-15.1.o.1> as ?die)
GRAPH <http://nomisma.org/editor/rschaefer> {
@ewg118
ewg118 / dies_for_type.sparql
Created Nov 5, 2020
Get all dies related to a coin type
View dies_for_type.sparql
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?die ?dieLabel ?altDie ?altDieLabel (count(?object) as ?count) WHERE {
?object nmo:hasTypeSeriesItem <http://numismatics.org/crro/id/rrc-15.1b> .
GRAPH <http://nomisma.org/editor/rschaefer> {
@ewg118
ewg118 / geonames_feature_codes.csv
Created Apr 16, 2020
Geonames - Wikidata - Getty AAT Feature Code Concordance
View geonames_feature_codes.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 9 columns, instead of 3. in line 5.
Geonames Feature Code,Geonames Label,Wikidata URI,Wikidata label,AAT ID,AAT label,description,Geonames Feature Class,Wikipedia Code
ADM1,first-order administrative division,http://www.wikidata.org/entity/Q10864048,first-level administrative country subdivision,http://vocab.getty.edu/aat/300387064,first level subdivisions (political entities),"a primary administrative division of a country, such as a state in the United States",A,A.ADM1
ADM1H,historical first-order administrative division,,,,,a former first-order administrative division,A,A.ADM1H
ADM2,second-order administrative division,http://www.wikidata.org/entity/Q13220204,second-level administrative country subdivision,http://vocab.getty.edu/aat/300387145,second level subdivisions (political entities),a subdivision of a first-order administrative division,A,A.ADM2
ADM2H,historical second-order administrative division,,,,,a former second-order administrative division,A,A.ADM2H
ADM3,third-order administrative division,http://www.wikidata.org/entity/Q132217
@ewg118
ewg118 / get-die-images.sparql
Created Oct 23, 2020
Get the coin images related to a die URI, whether applied to obverse or reverse
View get-die-images.sparql
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
@ewg118
ewg118 / die-query.sparql
Created Oct 19, 2020
Get coins connected to a die, either obverse or reverse.
View die-query.sparql
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX dcmitype: <http://purl.org/dc/dcmitype/>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
View newell.ttl
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix crm: <http://www.cidoc-crm.org/cidoc-crm/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
<http://numismatics.org/authority/american_numismatic_society>
a <http://www.cidoc-crm.org/cidoc-crm/E74_Group> ;
rdfs:label "American Numismatic Society" .
<http://numismatics.org/authority/newell>
@ewg118
ewg118 / newell.json
Created Sep 25, 2020
Linked Art JSON-LD for Edward Newell
View newell.json
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "http://numismatics.org/authority/newell",
"type": "Person",
"_label": "Newell, Edward Theodore, 1886-1941",
"identified_by": [
{
"type": "Name",
"content": "Newell, Edward Theodore, 1886-1941",
"classified_as": [
@ewg118
ewg118 / denarius.la.json
Created Aug 28, 2020
Denarius Linked Art JSON-LD
View denarius.la.json
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "http://nomisma.org/id/denarius",
"type": "Type",
"_label": "Denarius",
"identified_by": [
{
"type": "Name",
"content": "Denarius",
"classified_as": [
@ewg118
ewg118 / seleucus_i.la.json
Created Aug 28, 2020
Seleucus I as Linked Art JSON-LD
View seleucus_i.la.json
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "http://nomisma.org/id/seleucus_i",
"type": "Person",
"_label": "Seleucus I Nicator",
"identified_by": [
{
"type": "Name",
"content": "Seleucus I Nicator",
"classified_as": [
@ewg118
ewg118 / rome.la.json
Created Aug 28, 2020
Nomisma Mint in Linked Art JSON-LD
View rome.la.json
{
"@context": "https://linked.art/ns/v1/linked-art.json",
"id": "http://nomisma.org/id/rome",
"type": "Place",
"_label": "Rome",
"classified_as": [
{
"id": "http://nomisma.org/id/mint",
"_label": "Mint"
}
You can’t perform that action at this time.