designforcontext / aac_review_tool

MIT License
5 stars 7 forks source link

Problem with mapping of Creation Location #60

Closed cathryng closed 7 years ago

cathryng commented 7 years ago

I expected to see:

United States, New Hampshire, Carroll County, Crawford Notch - data from apiobjgeography place made=

but instead I saw:

nothing

The current query was:

PREFIX owl: <http://www.w3.org/2002/07/owl#>
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://www.cidoc-crm.org/cidoc-crm/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX schema: <http://schema.org/>

SELECT ?creation_location_name ?creation_lat ?creation_lng ?creation_location_class
WHERE {
<http://data.americanartcollaborative.org/puam/object/3139> a crm:E22_Man-Made_Object ;
  crm:P108i_was_produced_by ?production_event .
?production_event a crm:E12_Production ;
  crm:P7_took_place_at ?creation_location_class. 
OPTIONAL {
  ?creation_location_class a crm:E53_Place;
    rdfs:label ?creation_location_name.
  OPTIONAL {
    ?creation_location_class crm:P87_is_identified_by ?lat;
      crm:P87_is_identified_by ?lng.
    ?lat a crm:E47_Spatial_Coordinates;
      crm:P2_has_type <http://vocab.getty.edu/aat/300387565>; 
      rdf:value ?creation_lat.
    ?lng a crm:E47_Spatial_Coordinates;
      crm:P2_has_type <http://vocab.getty.edu/aat/300387567>; 
      rdf:value ?creation_lng.
  }
}

}
workergnome commented 7 years ago

Good catch. https://github.com/american-art/PUAM/issues/49 also addresses this issue. Thank you!

workergnome commented 7 years ago

Closed at https://github.com/american-art/PUAM/issues/49