Skip to content

Instantly share code, notes, and snippets.

Avatar

Ethan Gruber ewg118

  • American Numismatic Society
  • Charlottesville, Virginia
View GitHub Profile
@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 / 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 / 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"
}
@ewg118
ewg118 / letter-query.sparql
Created Jun 19, 2020
Query monograms by letter and get associated mints
View letter-query.sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX nm: <http://nomisma.org/id/>
PREFIX nmo: <http://nomisma.org/ontology#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT DISTINCT ?mint WHERE {
?monogram crm:P106_is_composed_of "Ψ", "Χ" .
You can’t perform that action at this time.