From ce9df5ae38dd1755ca8f6dc94238e2cef6a64a89 Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Wed, 1 Oct 2025 13:05:17 +0000 Subject: [PATCH 1/6] add, extend and refactor SPARQL queries --- docs/api/rels/1/activityCarriedOutByAgent.md | 20 ++++++---- docs/api/rels/1/activityCausedByActivity.md | 15 +++++-- .../api/rels/1/activityClassifiedAsConcept.md | 15 +++++-- docs/api/rels/1/activityPartOfActivity.md | 15 +++++-- docs/api/rels/1/activityParticipantAgent.md | 18 ++++++--- docs/api/rels/1/activityTookPlaceAtPlace.md | 15 +++++-- docs/api/rels/1/activityUsedObject.md | 15 +++++-- docs/api/rels/1/activityUsedSet.md | 15 +++++-- docs/api/rels/1/activityUsedWork.md | 14 +++++-- docs/api/rels/1/agentActiveAtPlace.md | 20 ++++++++-- docs/api/rels/1/agentBornOrFormedAtPlace.md | 20 ++++++++-- docs/api/rels/1/agentClassifiedAsConcept.md | 15 +++++-- .../api/rels/1/agentDiedOrDissolvedAtPlace.md | 20 ++++++++-- docs/api/rels/1/agentMemberOfGroup.md | 20 ++++++---- docs/api/rels/1/agentResidentAtPlace.md | 15 +++++-- docs/api/rels/1/conceptBroaderConcept.md | 15 +++++-- docs/api/rels/1/conceptClassifiedAsConcept.md | 15 +++++-- .../rels/1/conceptCreationCausedByActivity.md | 14 +++++-- .../api/rels/1/conceptInfluencedByActivity.md | 20 ++++++++-- docs/api/rels/1/conceptInfluencedByAgent.md | 29 ++++++++++---- docs/api/rels/1/conceptInfluencedByConcept.md | 21 ++++++++-- docs/api/rels/1/conceptInfluencedByObject.md | 19 ++++++++- docs/api/rels/1/conceptInfluencedByPlace.md | 21 ++++++++-- docs/api/rels/1/conceptInfluencedBySet.md | 21 ++++++++-- docs/api/rels/1/conceptInfluencedByWork.md | 21 ++++++++-- docs/api/rels/1/conceptMemberOfSet.md | 17 ++++++-- docs/api/rels/1/entityMemberOfSet.md | 16 ++++++-- docs/api/rels/1/groupActiveAtPlace.md | 21 ++++++++-- docs/api/rels/1/groupDissolvedAtPlace.md | 27 ++++++++----- docs/api/rels/1/groupFormedAtPlace.md | 27 ++++++++----- docs/api/rels/1/groupFoundedByAgent.md | 31 +++++++++----- docs/api/rels/1/objectCarriesWork.md | 17 ++++++-- docs/api/rels/1/objectClassifiedAsConcept.md | 16 ++++++-- docs/api/rels/1/objectCuratedByAgent.md | 40 +++++++++++++------ docs/api/rels/1/objectCurrentPlace.md | 21 ++++++---- .../1/objectDestructionCausedByActivity.md | 16 ++++++-- docs/api/rels/1/objectEncounteredAtPlace.md | 27 ++++++++++--- docs/api/rels/1/objectEncounteredByAgent.md | 24 +++++++---- docs/api/rels/1/objectMadeOfMaterial.md | 16 ++++++-- docs/api/rels/1/objectMemberOfSet.md | 17 ++++++-- docs/api/rels/1/objectOwnedByAgent.md | 20 ++++++---- docs/api/rels/1/objectPartOfObject.md | 16 ++++++-- docs/api/rels/1/objectProducedAtPlace.md | 19 +++++---- docs/api/rels/1/objectProducedByAgent.md | 19 +++++---- .../1/objectProductionCausedByActivity.md | 15 +++++-- .../1/objectProductionInfluencedByAgent.md | 25 ++++++++---- .../1/objectProductionInfluencedByObject.md | 17 ++++++-- .../1/objectProductionInfluencedByPlace.md | 16 ++++++-- .../1/objectProductionInfluencedByWork.md | 20 ++++++++-- .../1/objectProductionTechniqueConcept.md | 15 +++++-- docs/api/rels/1/objectShowsWork.md | 15 +++++-- docs/api/rels/1/personActiveAtPlace.md | 21 ++++++++-- docs/api/rels/1/personBornAtPlace.md | 25 ++++++++---- .../api/rels/1/personDeathCausedByActivity.md | 20 ++++++++-- docs/api/rels/1/personDiedAtPlace.md | 26 +++++++----- docs/api/rels/1/placeClassifiedAsConcept.md | 16 ++++++-- docs/api/rels/1/placeMemberOfSet.md | 17 ++++++-- docs/api/rels/1/placePartOfPlace.md | 16 ++++++-- docs/api/rels/1/setClassifiedAsConcept.md | 15 ++++++- docs/api/rels/1/setCreatedAtPlace.md | 22 ++++++++-- docs/api/rels/1/setCreatedByAgent.md | 30 +++++++++++--- .../api/rels/1/setCreationCausedByActivity.md | 16 +++++++- docs/api/rels/1/setMemberOfSet.md | 16 ++++++-- 63 files changed, 908 insertions(+), 310 deletions(-) diff --git a/docs/api/rels/1/activityCarriedOutByAgent.md b/docs/api/rels/1/activityCarriedOutByAgent.md index fd4c60fd..b92b6b14 100644 --- a/docs/api/rels/1/activityCarriedOutByAgent.md +++ b/docs/api/rels/1/activityCarriedOutByAgent.md @@ -12,19 +12,23 @@ See the related [model documentation](/model/base/#events-and-activities /model/ From the record for the National Gallery of Art, the record for the Manet exhibition activity would be in the response - ### Details * Class Given: Agent * Returns Class: Activity * Relationship: carriedOutBy - ### SPARQL -``` -SELECT DISTINCT ?activity WHERE { - BIND (<%current%>AS ?group) -. ?activity crm:P14_carried_out_by ?group . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P14_carried_out_by $current . + } UNION { + $current crm:P14i_performed ?activity . + } +} +``` diff --git a/docs/api/rels/1/activityCausedByActivity.md b/docs/api/rels/1/activityCausedByActivity.md index 877734cb..66bd0ed0 100644 --- a/docs/api/rels/1/activityCausedByActivity.md +++ b/docs/api/rels/1/activityCausedByActivity.md @@ -12,16 +12,23 @@ See the related [model documentation]() From the record for a fire that damaged a statue, the record for the conservation activity to repair the statue would be in the response - ### Details * Class Given: Event,Activity * Returns Class: Event,Activity * Relationship: - ### SPARQL -``` +```sparql +PREFIX sci: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity sci:O13i_is_triggered_by $current . + } UNION { + $current sci:O13_triggers ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityClassifiedAsConcept.md b/docs/api/rels/1/activityClassifiedAsConcept.md index c128e348..ba635430 100644 --- a/docs/api/rels/1/activityClassifiedAsConcept.md +++ b/docs/api/rels/1/activityClassifiedAsConcept.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/base/#types-and-classifications) From the record for the concept of Exhibitions, the record for "Manet and Modern Beauty" would be in the response - ### Details * Class Given: Concept * Returns Class: Temporal * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P2_has_type $current . + } UNION { + $current crm:P2i_is_type_of ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityPartOfActivity.md b/docs/api/rels/1/activityPartOfActivity.md index 51594948..48c0dd6b 100644 --- a/docs/api/rels/1/activityPartOfActivity.md +++ b/docs/api/rels/1/activityPartOfActivity.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/base/#parts) From the record for the Bronze Age, the record for the Middle Bronze Age would be in the response - ### Details * Class Given: Temporal * Returns Class: Temporal * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P9_consists_of $current . + } UNION { + $current crm:P9i_forms_part_of ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityParticipantAgent.md b/docs/api/rels/1/activityParticipantAgent.md index 7f5957a7..8ff0fbaf 100644 --- a/docs/api/rels/1/activityParticipantAgent.md +++ b/docs/api/rels/1/activityParticipantAgent.md @@ -12,17 +12,23 @@ See the related [model documentation]() From the record for Tristan Tzara, the record for Cabaret Voltaire would be in the response. - ### Details * Class Given: Agent * Returns Class: Event, Activity * Relationship: participant - ### SPARQL -``` -SELECT DISTINCT ?activity WHERE { - ?activity crm:P11_had_participant <%current%>. } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P11_had_participant $current . + } UNION { + $current crm:P11i_participated_in ?activity . + } +} +``` diff --git a/docs/api/rels/1/activityTookPlaceAtPlace.md b/docs/api/rels/1/activityTookPlaceAtPlace.md index aff79b93..34b69ed5 100644 --- a/docs/api/rels/1/activityTookPlaceAtPlace.md +++ b/docs/api/rels/1/activityTookPlaceAtPlace.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/base/#events-and-activities) From the record for New Haven, the record for the exhibition activity Life, Liberty and the Pursuit of Happiness would be in the response - ### Details * Class Given: Place * Returns Class: Event, Activity * Relationship: tookPlaceAt - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityUsedObject.md b/docs/api/rels/1/activityUsedObject.md index 376176c3..fd81968e 100644 --- a/docs/api/rels/1/activityUsedObject.md +++ b/docs/api/rels/1/activityUsedObject.md @@ -12,16 +12,23 @@ See the related [model documentation]() From the record for the Night Watch, the record for the conservation work on the painting would be in the response - ### Details * Class Given: HumanMadeObject * Returns Class: Activity * Relationship: used - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P31_has_modified $current . + } UNION { + $current crm:P31i_was_modified_by ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityUsedSet.md b/docs/api/rels/1/activityUsedSet.md index 9acff737..92b08e99 100644 --- a/docs/api/rels/1/activityUsedSet.md +++ b/docs/api/rels/1/activityUsedSet.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/exhibition/#exhibition-activity) From the record for the set of objects shown in an exhibition, the record for the exhibition's activity would be in the response - ### Details * Class Given: Set * Returns Class: Activity * Relationship: used - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P16_used_specific_object $current . + } UNION { + $current crm:P16i_was_used_for ?activity . + } +} ``` - diff --git a/docs/api/rels/1/activityUsedWork.md b/docs/api/rels/1/activityUsedWork.md index 60874ba8..da00c079 100644 --- a/docs/api/rels/1/activityUsedWork.md +++ b/docs/api/rels/1/activityUsedWork.md @@ -19,9 +19,17 @@ See the related [model documentation]() * Returns Class: Activity * Relationship: used - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?activity +WHERE { + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } +} ``` - diff --git a/docs/api/rels/1/agentActiveAtPlace.md b/docs/api/rels/1/agentActiveAtPlace.md index a2131bda..fb852e54 100644 --- a/docs/api/rels/1/agentActiveAtPlace.md +++ b/docs/api/rels/1/agentActiveAtPlace.md @@ -12,16 +12,28 @@ See the related [model documentation](/model/actor/#active-dates) From the record for Harlem, New York, the record for A.Philip Randolph would be in the response - ### Details * Class Given: Place * Returns Class: Agent * Relationship: activeAt - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + $current crm:P7i_witnessed ?activity . + } UNION { + ?activity crm:P7_took_place_at $current . + } + { + ?activity crm:P14_carried_out_by ?agent . + } UNION { + ?agent crm:P14i_perfomed ?activity . + } +} ``` - diff --git a/docs/api/rels/1/agentBornOrFormedAtPlace.md b/docs/api/rels/1/agentBornOrFormedAtPlace.md index 4e14eeed..cb195fb4 100644 --- a/docs/api/rels/1/agentBornOrFormedAtPlace.md +++ b/docs/api/rels/1/agentBornOrFormedAtPlace.md @@ -12,16 +12,28 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Harlem, New York, the record for Ayize Jama-Everett would be in the response - ### Details * Class Given: Place * Returns Class: Agent * Relationship: born / formed - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + ?agent crm:P98i_was_born|crm:P95i_was_formed_by ?activity . + } UNION { + ?activity crm:P98_brought_into_life|crm:P95_has_formed ?agent . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } +} ``` - diff --git a/docs/api/rels/1/agentClassifiedAsConcept.md b/docs/api/rels/1/agentClassifiedAsConcept.md index 333ba4e8..c5a24e6e 100644 --- a/docs/api/rels/1/agentClassifiedAsConcept.md +++ b/docs/api/rels/1/agentClassifiedAsConcept.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/base/#types-and-classifications) From the record for the concept of the Dutch nationality, the record for Rembrandt would be in the response - ### Details * Class Given: Concept * Returns Class: Agent * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + ?agent crm:P2_has_type $current . + } UNION { + $current crm:P2_is_type_of ?agent . + } +} ``` - diff --git a/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md b/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md index 2a3fc828..4cc605a7 100644 --- a/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md +++ b/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md @@ -12,16 +12,28 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Harlem, New York, the record for Howard Johnson-1941-2021 would be in the response - ### Details * Class Given: Place * Returns Class: Agent * Relationship: died / dissolved - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + ?agent crm:P100i_died_in|crm:P95i_was_formed_by ?activity . + } UNION { + ?activity crm:P100_was_death_of|crm:P99_dissolved ?agent . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } +} ``` - diff --git a/docs/api/rels/1/agentMemberOfGroup.md b/docs/api/rels/1/agentMemberOfGroup.md index 626a880f..6ddd7383 100644 --- a/docs/api/rels/1/agentMemberOfGroup.md +++ b/docs/api/rels/1/agentMemberOfGroup.md @@ -12,19 +12,23 @@ See the related [model documentation](/model/actor/#organization-membership) From the record for Societe Anonyme, Katherine Dreier and Fortunato Depero would all be in the response - ### Details * Class Given: Group * Returns Class: Agent * Relationship: memberOf - ### SPARQL -``` -SELECT DISTINCT ?member WHERE { - BIND (<%current%> AS ?group) -. ?member crm:P107i_is_current_or_former_member_of ?group . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + ?agent crm:P107i_is_current_or_former_member_of $current . + } UNION { + $current crm:P107_has_current_or_former_member ?agent . + } +} +``` diff --git a/docs/api/rels/1/agentResidentAtPlace.md b/docs/api/rels/1/agentResidentAtPlace.md index 481176ed..28f60e22 100644 --- a/docs/api/rels/1/agentResidentAtPlace.md +++ b/docs/api/rels/1/agentResidentAtPlace.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/actor/#residence-as-a-place) From the record for Brooklyn, New York the record for E.V. Day would be in the response - ### Details * Class Given: Place * Returns Class: Agent * Relationship: residenceAt - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?agent +WHERE { + { + ?agent crm:P74_has_current_or_former_residence $current . + } UNION { + $current crm:P74i_is_current_or_former_residence_of ?agent . + } +} ``` - diff --git a/docs/api/rels/1/conceptBroaderConcept.md b/docs/api/rels/1/conceptBroaderConcept.md index be3c9d07..c67b350e 100644 --- a/docs/api/rels/1/conceptBroaderConcept.md +++ b/docs/api/rels/1/conceptBroaderConcept.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/concept/#partitioning-versus-classi From the record for the concept for Visual Art object types, the record for Paintings would be in the response - ### Details * Class Given: Concept * Returns Class: Concept * Relationship: broader - ### SPARQL -``` +```sparql +PREFIX skos: . + +SELECT DISTINCT ?concept +WHERE { + { + $current skos:broader ?concept . + } UNION { + ?concept skos:narrower $current . + } +} ``` - diff --git a/docs/api/rels/1/conceptClassifiedAsConcept.md b/docs/api/rels/1/conceptClassifiedAsConcept.md index befa8600..7132d0cf 100644 --- a/docs/api/rels/1/conceptClassifiedAsConcept.md +++ b/docs/api/rels/1/conceptClassifiedAsConcept.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/concept/#partitioning-versus-classi From the record for the concept of Nationalities, the record for Dutch would be in the response - ### Details * Class Given: Concept * Returns Class: Concept * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P2_has_type ?concept . + } UNION { + ?concept crm:P2_is_type_of $current . + } +} ``` - diff --git a/docs/api/rels/1/conceptCreationCausedByActivity.md b/docs/api/rels/1/conceptCreationCausedByActivity.md index 7def1213..b62ae4e2 100644 --- a/docs/api/rels/1/conceptCreationCausedByActivity.md +++ b/docs/api/rels/1/conceptCreationCausedByActivity.md @@ -19,9 +19,17 @@ See the related [model documentation]() * Returns Class: Concept * Relationship: - ### SPARQL -``` ``` - +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created $current . + } +} +``` diff --git a/docs/api/rels/1/conceptInfluencedByActivity.md b/docs/api/rels/1/conceptInfluencedByActivity.md index 5be1afba..e83dfd90 100644 --- a/docs/api/rels/1/conceptInfluencedByActivity.md +++ b/docs/api/rels/1/conceptInfluencedByActivity.md @@ -12,16 +12,28 @@ See the related [model documentation](/model/concept/#creation-and-influences) From the record for the 15th Century (a Period), the record for the History of France in the 15th Century would be in the response - ### Details * Class Given: Temporal * Returns Class: Concept * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } +} ``` - diff --git a/docs/api/rels/1/conceptInfluencedByAgent.md b/docs/api/rels/1/conceptInfluencedByAgent.md index 6d562752..5540343c 100644 --- a/docs/api/rels/1/conceptInfluencedByAgent.md +++ b/docs/api/rels/1/conceptInfluencedByAgent.md @@ -12,18 +12,33 @@ See the related [model documentation](/model/concept/#creation-and-influences) From the record for Rembrandt, the record for the concept 'Rembrandt -- Aesthetics' would be in the response - ### Details * Class Given: Agent * Returns Class: Concept * Relationship: influencedBy - ### SPARQL -``` -SELECT DISTINCT ?concept WHERE { - ?concept crm:P94i_was_created_by ?creation . - ?creation crm:P15_was_influenced_by <%current%>. } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + { + $current a crm:E21_Person . + } UNION { + $current a crm:E74_Group . + } +} +``` diff --git a/docs/api/rels/1/conceptInfluencedByConcept.md b/docs/api/rels/1/conceptInfluencedByConcept.md index 671cbfc1..2b7f0602 100644 --- a/docs/api/rels/1/conceptInfluencedByConcept.md +++ b/docs/api/rels/1/conceptInfluencedByConcept.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/concept/#creation-and-influences) From the record for the concept of History, the record for History of France would be in the response - ### Details * Class Given: Concept * Returns Class: Concept * Relationship: influencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + $current a crm:E55_Type . +} ``` - diff --git a/docs/api/rels/1/conceptInfluencedByObject.md b/docs/api/rels/1/conceptInfluencedByObject.md index a278936a..bdb1b87d 100644 --- a/docs/api/rels/1/conceptInfluencedByObject.md +++ b/docs/api/rels/1/conceptInfluencedByObject.md @@ -21,7 +21,22 @@ From the record for the Night Watch, the concept of the Reception of the Night W ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + $current a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/conceptInfluencedByPlace.md b/docs/api/rels/1/conceptInfluencedByPlace.md index 1a5eaaa9..87c09bcc 100644 --- a/docs/api/rels/1/conceptInfluencedByPlace.md +++ b/docs/api/rels/1/conceptInfluencedByPlace.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/concept/#creation-and-influences) From the record for the Netherlands, the record for Dutch Golden Age Paintings would be in the response - ### Details * Class Given: Place * Returns Class: Concept * Relationship: influencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/conceptInfluencedBySet.md b/docs/api/rels/1/conceptInfluencedBySet.md index 135af1ee..4a84b685 100644 --- a/docs/api/rels/1/conceptInfluencedBySet.md +++ b/docs/api/rels/1/conceptInfluencedBySet.md @@ -19,9 +19,24 @@ See the related [model documentation](/model/concept/#creation-and-influences) * Returns Class: Concept * Relationship: influencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + $current a la:Set . +} ``` - diff --git a/docs/api/rels/1/conceptInfluencedByWork.md b/docs/api/rels/1/conceptInfluencedByWork.md index 1ae745f7..0011ee41 100644 --- a/docs/api/rels/1/conceptInfluencedByWork.md +++ b/docs/api/rels/1/conceptInfluencedByWork.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/concept/#creation-and-influences) From the record for The Lord of the Rings, the record for the concept of the History of Middle-Earth would be in the response - ### Details * Class Given: Work * Returns Class: Concept * Relationship: influencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?concept +WHERE { + { + $current crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?concept . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + $current a crm:E89_Propositional_Object . +} ``` - diff --git a/docs/api/rels/1/conceptMemberOfSet.md b/docs/api/rels/1/conceptMemberOfSet.md index 32bdfe4b..18a99120 100644 --- a/docs/api/rels/1/conceptMemberOfSet.md +++ b/docs/api/rels/1/conceptMemberOfSet.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/collection/#features) From the record for the AAT concept scheme (a Set), the record for AAT's Primary Name concept would be in the response - ### Details * Class Given: Set * Returns Class: Concept * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?concept +WHERE { + { + ?concept la:member_of $current . + } UNION { + $current la:has_member ?concept . + } + ?concept a crm:E55_Type . +} ``` - diff --git a/docs/api/rels/1/entityMemberOfSet.md b/docs/api/rels/1/entityMemberOfSet.md index dcd9afd6..5c53524d 100644 --- a/docs/api/rels/1/entityMemberOfSet.md +++ b/docs/api/rels/1/entityMemberOfSet.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/collection/#features) From the record for the Getty's painting department's objects, the record for Spring would be in the response - ### Details * Class Given: Set * Returns Class: Entity * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX la: . + +SELECT DISTINCT ?entity +WHERE { + { + ?entity la:member_of $current . + } UNION { + $current la:has_member ?entity . + } + $current a la:Set . +} ``` - diff --git a/docs/api/rels/1/groupActiveAtPlace.md b/docs/api/rels/1/groupActiveAtPlace.md index 13d64cff..2c17f22d 100644 --- a/docs/api/rels/1/groupActiveAtPlace.md +++ b/docs/api/rels/1/groupActiveAtPlace.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/actor/#active-dates) From the record for Paris France, the record for Goupil & Cie would be in the response - ### Details * Class Given: Place * Returns Class: Group * Relationship: activeAt - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?group +WHERE { + { + ?group crm:P14i_performed ?activity . + } UNION { + ?activity crm:P14_carried_out_by ?group . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/groupDissolvedAtPlace.md b/docs/api/rels/1/groupDissolvedAtPlace.md index 2303cd20..28a1ab7d 100644 --- a/docs/api/rels/1/groupDissolvedAtPlace.md +++ b/docs/api/rels/1/groupDissolvedAtPlace.md @@ -12,20 +12,29 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for New Haven Connecticut, the record for Société Anonyme would be in the response - ### Details * Class Given: Place * Returns Class: Group * Relationship: dissolvedAt - ### SPARQL -``` -SELECT DISTINCT ?group WHERE { - BIND(<%current%>as ?where) - ?group crm:P99i_was_dissolved_by ?dissolution . - ?dissolution crm:P7_took_place_at ?where . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?group +WHERE { + { + ?group crm:P99i_was_dissolved_by ?activity . + } UNION { + ?activity crm:P99_dissolved ?group . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + $current a crm:E53_Place . +} +``` diff --git a/docs/api/rels/1/groupFormedAtPlace.md b/docs/api/rels/1/groupFormedAtPlace.md index dd11525c..cba2da7e 100644 --- a/docs/api/rels/1/groupFormedAtPlace.md +++ b/docs/api/rels/1/groupFormedAtPlace.md @@ -12,20 +12,29 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Los Altos California, the record for Apple Computers would be in the response - ### Details * Class Given: Place * Returns Class: Group * Relationship: formedAt - ### SPARQL -``` -SELECT DISTINCT ?group WHERE { - BIND(<%current%>as ?where) - ?group crm:P95i_was_formed_by ?formation . - ?formation crm:P7_took_place_at ?where . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?group +WHERE { + { + ?group crm:P95i_was_formed_by ?activity . + } UNION { + ?activity crm:P95_has_formed ?group . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + $current a crm:E53_Place . +} +``` diff --git a/docs/api/rels/1/groupFoundedByAgent.md b/docs/api/rels/1/groupFoundedByAgent.md index e074363b..32a87ce3 100644 --- a/docs/api/rels/1/groupFoundedByAgent.md +++ b/docs/api/rels/1/groupFoundedByAgent.md @@ -12,20 +12,33 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Katherine Dreier, Man Ray or Marcel Duchamps, the group Societe Anonyme would be in the response - ### Details * Class Given: Agent * Returns Class: Group * Relationship: foundedBy - ### SPARQL -``` -SELECT DISTINCT ?group WHERE { - BIND (<%current%>AS ?who) -. ?group crm:P95i_was_formed_by ?formation . - ?formation crm:P14_carried_out_by ?who . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?group +WHERE { + { + ?group crm:P95i_was_formed_by ?activity . + } UNION { + ?activity crm:P95_has_formed ?group . + } + { + ?activity ccrm:P14_carried_out_by $current . + } UNION { + $current crm:P14i_performed ?activity . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E74_Group . + } +} +``` diff --git a/docs/api/rels/1/objectCarriesWork.md b/docs/api/rels/1/objectCarriesWork.md index f5fdc179..67fff78e 100644 --- a/docs/api/rels/1/objectCarriesWork.md +++ b/docs/api/rels/1/objectCarriesWork.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/document/#physical-objects-conceptu From the record for the Lord of the Rings, the record for the copy in the British Library would be in the response - ### Details * Class Given: LinguisticObject * Returns Class: HumanMadeObject * Relationship: carries - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + $current crm:P128_carries ?textualWork . + } UNION { + ?textualWork crm:P128i_is_carried_by $current . + } + ?textualWork a crm:E33_Linguistic_Object . + $current a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectClassifiedAsConcept.md b/docs/api/rels/1/objectClassifiedAsConcept.md index e474be7b..ff34ca4e 100644 --- a/docs/api/rels/1/objectClassifiedAsConcept.md +++ b/docs/api/rels/1/objectClassifiedAsConcept.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/base/#types-and-classifications) From the record for Paintings, the record for Sunflowers would be in the response - ### Details * Class Given: Concept * Returns Class: HumanMadeObject * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + $current crm:P2_has_type ?concept . + } UNION { + ?concept crm:P2_is_type_of $current . + } + $current a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectCuratedByAgent.md b/docs/api/rels/1/objectCuratedByAgent.md index c5b6ef12..3321b0e0 100644 --- a/docs/api/rels/1/objectCuratedByAgent.md +++ b/docs/api/rels/1/objectCuratedByAgent.md @@ -12,25 +12,39 @@ See the related [model documentation](/model/object/ownership/#custody) From the record for the Paintings Department of the Rijksmuseum, the record for The Night Watch would be in the response. - ### Details * Class Given: Agent * Returns Class: HumanMadeObject * Relationship: curatedBy - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?who) - { - ?object a crm:E22_Human-Made_Object ; la:member_of ?coll . - ?coll crm:P16i_was_used_for ?curating . - ?curating crm:P14_carried_out_by ?who . - } UNION { - ?object crm:P50_has_current_keeper ?who . - } + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object la:member_of ?set . + } UNION { + ?set la:has_member ?object . + } + { + ?object crm:P50_has_current_keeper $current . + } UNION { + $current crm:P50i_is_current_keeper_of ?object . + } + { + ?set crm:P16i_was_used_for ?activity . + } UNION { + ?activity crm:P16_used_specific_object ?set . + } + { + ?activity crm:P14_was_carried_out_by $current . + } UNION { + $current crm:P14i_performed ?activity . + } + ?object a crm:E22_Human-Made_Object . } ``` - diff --git a/docs/api/rels/1/objectCurrentPlace.md b/docs/api/rels/1/objectCurrentPlace.md index a1e38430..500e8c84 100644 --- a/docs/api/rels/1/objectCurrentPlace.md +++ b/docs/api/rels/1/objectCurrentPlace.md @@ -12,18 +12,25 @@ See the related [model documentation](/model/object/ownership/#location) From the record for Getty's gallery W204, the record for Jeanne (Spring) would be in the response - ### Details * Class Given: Place * Returns Class: HumanMadeObject * Relationship: current - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?where) - ?object a crm:E22_Human-Made_Object ; crm:P55_has_current_location ?where } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P55_has_current_location $current . + } UNION { + $current crm:P55i_currently_holds ?object . + } + ?object a crm:E22_Human-Made_Object . + $current a crm:E53_Place . +} +``` diff --git a/docs/api/rels/1/objectDestructionCausedByActivity.md b/docs/api/rels/1/objectDestructionCausedByActivity.md index d79e0680..b887c73c 100644 --- a/docs/api/rels/1/objectDestructionCausedByActivity.md +++ b/docs/api/rels/1/objectDestructionCausedByActivity.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/object/production/#cause-of-destruc From the record for a fire that destroyed a museum, the record for an object destroyed in the fire would be in the response - ### Details * Class Given: Event,Activity * Returns Class: HumanMadeObject * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P13i_was_destroyed_by $current . + } UNION { + $current crm:P13_destroyed ?object . + } + ?object a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectEncounteredAtPlace.md b/docs/api/rels/1/objectEncounteredAtPlace.md index 415affba..cd866c61 100644 --- a/docs/api/rels/1/objectEncounteredAtPlace.md +++ b/docs/api/rels/1/objectEncounteredAtPlace.md @@ -12,19 +12,34 @@ See the related [model documentation](/model/object/production/#discovery-versus From the record for the Burgess Shale, the record for Anomalocaris Canadiensis would be in the response - ### Details * Class Given: Place * Returns Class: HumanMadeObject * Relationship: encounteredAt - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?where) - ?object a crm:E22_Human-Made_Object ; sci:O19i_was_object_found_by/crm:P9_consists_of*/crm:P7_took_place_at ?where . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object sci:O19i_was_object_encountered_at ?encounter . + } UNION { + ?encounter sci:O19_encountered_object ?object . + } + { + ?encounter crm:P9_consists_of*/crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed/crm:P9i_forms_part_of* ?encounter . } +} ``` +> [!WARNING] +> In CRMsci 3.0 `O19` is named: +> > O19 encountered object (was object encountered through) +> > -- + diff --git a/docs/api/rels/1/objectEncounteredByAgent.md b/docs/api/rels/1/objectEncounteredByAgent.md index a3b9b4d4..9f52bf75 100644 --- a/docs/api/rels/1/objectEncounteredByAgent.md +++ b/docs/api/rels/1/objectEncounteredByAgent.md @@ -12,20 +12,28 @@ See the related [model documentation](/model/object/production/#discovery-versus From the record for O.C. Marsh, the record for the Torosaurus holotype would be in the response - ### Details * Class Given: Agent * Returns Class: HumanMadeObject * Relationship: encounteredBy - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?who) - ?object a crm:E22_Human-Made_Object ; sci:O19i_was_object_encountered_at ?enc . - ?enc crm:P9_consists_of*/crm:P14_carried_out_by ?who . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object sci:O19i_was_object_encountered_at ?encounter . + } UNION { + ?encounter sci:O19_encountered_object ?object . + } + { + ?encounter (crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P14_carried_out_by $current . + } UNION { + $current crm:P14i_performed/(crm:P9_consists_of|crm:P9i_forms_part_of)* ?encounter . } +} ``` - diff --git a/docs/api/rels/1/objectMadeOfMaterial.md b/docs/api/rels/1/objectMadeOfMaterial.md index b0a99769..4c95a753 100644 --- a/docs/api/rels/1/objectMadeOfMaterial.md +++ b/docs/api/rels/1/objectMadeOfMaterial.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/object/physical/#materials) From the record for Canvas, the record for The Night Watch would be in the response - ### Details * Class Given: Material * Returns Class: HumanMadeObject * Relationship: madeOf - ### SPARQL -``` ``` - +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P45_consists_of $current . + } UNION { + $current crm:P45i_is_incorporated_in ?object . + } + $current a crm:57_Material . +} +``` diff --git a/docs/api/rels/1/objectMemberOfSet.md b/docs/api/rels/1/objectMemberOfSet.md index 5d71b6d3..d6962bfc 100644 --- a/docs/api/rels/1/objectMemberOfSet.md +++ b/docs/api/rels/1/objectMemberOfSet.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/collection/#features) From the record for the Rijksmuseum's highlight objects, the record for the Night Watch would be in the response - ### Details * Class Given: Set * Returns Class: HumanMadeObject * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?object +WHERE { + { + ?object la:member_of $current . + } UNION { + $current la:has_member ?object . + } + $current a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectOwnedByAgent.md b/docs/api/rels/1/objectOwnedByAgent.md index 7f587f9e..188b5edf 100644 --- a/docs/api/rels/1/objectOwnedByAgent.md +++ b/docs/api/rels/1/objectOwnedByAgent.md @@ -12,19 +12,23 @@ See the related [model documentation](/model/object/ownership/#ownership) From the record for the Rijksmuseum, the record for The Night Watch would be in the response. - ### Details * Class Given: Agent * Returns Class: HumanMadeObject * Relationship: ownedBy - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?who) - ?object a crm:E22_Human-Made_Object ; crm:P52_has_current_owner ?who . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P52_has_current_owner $current . + } UNION { + $current crm:P52i_is_current_owner_of ?object . + } +} +``` diff --git a/docs/api/rels/1/objectPartOfObject.md b/docs/api/rels/1/objectPartOfObject.md index 24c6a812..4a312727 100644 --- a/docs/api/rels/1/objectPartOfObject.md +++ b/docs/api/rels/1/objectPartOfObject.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/object/physical/#parts) From the record for the Night Watch, the record for the frame of the Night Watch would be in the response - ### Details * Class Given: HumanMadeObject * Returns Class: HumanMadeObject * Relationship: objectPartOfObject - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P46i_forms_part_of $current . + } UNION { + $current crm:P46_is_composed_of ?object . + } + ?object a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectProducedAtPlace.md b/docs/api/rels/1/objectProducedAtPlace.md index 8da1eb72..b371c141 100644 --- a/docs/api/rels/1/objectProducedAtPlace.md +++ b/docs/api/rels/1/objectProducedAtPlace.md @@ -12,19 +12,24 @@ See the related [model documentation](/model/object/production/#base-production- From the record for Amsterdam, the record for The Night Watch would be in the response - ### Details * Class Given: Place * Returns Class: HumanMadeObject * Relationship: producedAt - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?where) - ?object a crm:E22_Human-Made_Object ; crm:P108i_was_produced_by/crm:P9_consists_of*/crm:P7_took_place_at ?where . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . } + ?object a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectProducedByAgent.md b/docs/api/rels/1/objectProducedByAgent.md index 72f2ab13..85948ad6 100644 --- a/docs/api/rels/1/objectProducedByAgent.md +++ b/docs/api/rels/1/objectProducedByAgent.md @@ -12,20 +12,23 @@ See the related [model documentation](/model/object/production/#base-production- From the record for Rembrandt, the record for The Night Watch would be in the response - ### Details * Class Given: Agent * Returns Class: HumanMadeObject * Relationship: producedBy - ### SPARQL -``` -SELECT DISTINCT ?object WHERE { - BIND(<%current%> as ?who) - ?object a crm:E22_Human-Made_Object ; crm:P108i_was_produced_by ?prod . - ?prod crm:P9_consists_of*/crm:P14_carried_out_by ?who . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P14_carried_out_by $current . + } UNION { + $current crm:P14i_performed/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . } +} ``` - diff --git a/docs/api/rels/1/objectProductionCausedByActivity.md b/docs/api/rels/1/objectProductionCausedByActivity.md index a60ee0f6..cd6f85b3 100644 --- a/docs/api/rels/1/objectProductionCausedByActivity.md +++ b/docs/api/rels/1/objectProductionCausedByActivity.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/object/production/#cause-of-product From the record for a commission activity, the record for the object that was produced because of the commission would be in the response - ### Details * Class Given: Event,Activity * Returns Class: HumanMadeObject * Relationship: productionCausedBy - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/sci:O13i_is_triggered_by $current . + } UNION { + $current sci:O13_triggers/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } +} ``` diff --git a/docs/api/rels/1/objectProductionInfluencedByAgent.md b/docs/api/rels/1/objectProductionInfluencedByAgent.md index c2166026..04cc9631 100644 --- a/docs/api/rels/1/objectProductionInfluencedByAgent.md +++ b/docs/api/rels/1/objectProductionInfluencedByAgent.md @@ -12,18 +12,29 @@ See the related [model documentation](/model/object/production/#inspirations-stu From the record for Albert Bierstadt, the prints of his works (which were not necessarily created by him) would be in the response - ### Details * Class Given: Agent * Returns Class: HumanMadeObject * Relationship: productionInfluencedBy - ### SPARQL -``` -SELECT DISTINCT ?objects WHERE { - ?objects crm:P108i_was_produced_by ?production . - ?production crm:P15_was_influenced_by <%current%>. } -``` +```sparql +PREFIX crm: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E74_Group . + } +} +``` diff --git a/docs/api/rels/1/objectProductionInfluencedByObject.md b/docs/api/rels/1/objectProductionInfluencedByObject.md index a9673988..ca4519db 100644 --- a/docs/api/rels/1/objectProductionInfluencedByObject.md +++ b/docs/api/rels/1/objectProductionInfluencedByObject.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/object/production/#inspirations-stu From the record a painting that was copied, the record for the copy would be in the response - ### Details * Class Given: HumanMadeObject * Returns Class: HumanMadeObject * Relationship: productionInfluencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } + $current a crm:E21_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/objectProductionInfluencedByPlace.md b/docs/api/rels/1/objectProductionInfluencedByPlace.md index 6ac2d3c6..fde6b87c 100644 --- a/docs/api/rels/1/objectProductionInfluencedByPlace.md +++ b/docs/api/rels/1/objectProductionInfluencedByPlace.md @@ -19,9 +19,19 @@ See the related [model documentation](/model/object/production/#inspirations-stu * Returns Class: HumanMadeObject * Relationship: productionInfluencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/objectProductionInfluencedByWork.md b/docs/api/rels/1/objectProductionInfluencedByWork.md index 48de4557..fddb0d58 100644 --- a/docs/api/rels/1/objectProductionInfluencedByWork.md +++ b/docs/api/rels/1/objectProductionInfluencedByWork.md @@ -19,9 +19,23 @@ See the related [model documentation](/model/object/production/#inspirations-stu * Returns Class: HumanMadeObject * Relationship: productionInfluencedBy - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } + { + $current a crm:E36_Visual_Item . + } UNION { + $current a crm:E33_Linguistic_Object . + } +} ``` - diff --git a/docs/api/rels/1/objectProductionTechniqueConcept.md b/docs/api/rels/1/objectProductionTechniqueConcept.md index 90754099..e5339681 100644 --- a/docs/api/rels/1/objectProductionTechniqueConcept.md +++ b/docs/api/rels/1/objectProductionTechniqueConcept.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/object/production/#techniques-and-c From the record for Bronze Casting, the record for The Thinker would be in the response - ### Details * Class Given: Concept * Returns Class: HumanMadeObject * Relationship: productionTechnique - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P108i_was_produced_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P32_used_general_technique $current . + } UNION { + $current crm:P32i_was_technique_of/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . + } +} ``` - diff --git a/docs/api/rels/1/objectShowsWork.md b/docs/api/rels/1/objectShowsWork.md index a67263a4..57b26eee 100644 --- a/docs/api/rels/1/objectShowsWork.md +++ b/docs/api/rels/1/objectShowsWork.md @@ -12,16 +12,23 @@ See the related [model documentation](/model/object/aboutness/#physical-object-a From the record for the image of the Night Watch, the record for the painting would be in the response - ### Details * Class Given: VisualItem * Returns Class: HumanMadeObject * Relationship: shows - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?object +WHERE { + { + ?object crm:P65_shows_visual_item $current . + } UNION { + $current crm:P65i_is_shown_by ?object . + } +} ``` - diff --git a/docs/api/rels/1/personActiveAtPlace.md b/docs/api/rels/1/personActiveAtPlace.md index d2839e52..58c36d9b 100644 --- a/docs/api/rels/1/personActiveAtPlace.md +++ b/docs/api/rels/1/personActiveAtPlace.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/actor/#active-dates) From the record for Arles France, the record for Vincent Van Gogh would be in the response - ### Details * Class Given: Place * Returns Class: Person * Relationship: activeAt - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?person +WHERE { + { + ?person crm:P14i_performed/(crm:P9_consists_of|crm:P9i_forms_part_of)* ?activity . + } UNION { + ?activity (crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P14_carried_out_by ?person . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + ?person a crm:E21_Person . +} ``` - diff --git a/docs/api/rels/1/personBornAtPlace.md b/docs/api/rels/1/personBornAtPlace.md index abb92750..90a81154 100644 --- a/docs/api/rels/1/personBornAtPlace.md +++ b/docs/api/rels/1/personBornAtPlace.md @@ -12,7 +12,6 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Leiden, the record for Rembrandt would be in the response - ### Details * Class Given: Place @@ -21,11 +20,21 @@ From the record for Leiden, the record for Rembrandt would be in the response ### SPARQL -``` -SELECT DISTINCT ?agent WHERE { - BIND(<%current%>as ?where) - ?agent crm:P98i_was_born ?birth . - ?birth crm:P7_took_place_at ?where . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?person +WHERE { + { + ?person crm:P98i_was_born ?birth . + } UNION { + ?birth crm:P98_brought_into_life ?person . + } + { + ?birth crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?birth . + } +} +``` diff --git a/docs/api/rels/1/personDeathCausedByActivity.md b/docs/api/rels/1/personDeathCausedByActivity.md index dd05466c..05ef0a95 100644 --- a/docs/api/rels/1/personDeathCausedByActivity.md +++ b/docs/api/rels/1/personDeathCausedByActivity.md @@ -12,16 +12,28 @@ See the related [model documentation]() From the record for the Bubonic Plague, the record for a person who died of the plague would be in the response - ### Details * Class Given: Event,Activity * Returns Class: Person * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?person +WHERE { + { + ?person crm:P100i_died_in ?death . + } UNION { + ?death crm:P100_was_death_of ?person . + } + { + ?death sci:O13i_is_triggered_by $current . + } UNION { + $current sci:O13_triggered ?death . + } +} ``` - diff --git a/docs/api/rels/1/personDiedAtPlace.md b/docs/api/rels/1/personDiedAtPlace.md index 942037a6..f61238d6 100644 --- a/docs/api/rels/1/personDiedAtPlace.md +++ b/docs/api/rels/1/personDiedAtPlace.md @@ -12,20 +12,28 @@ See the related [model documentation](/model/actor/#birth-and-death-formation-an From the record for Amsterdam, the record for Rembrandt would be in the response - ### Details * Class Given: Place * Returns Class: Person * Relationship: diedAt - ### SPARQL -``` -SELECT DISTINCT ?person WHERE { - BIND(<%current%>as ?where) - ?person crm:P100i_died_in ?death . - ?death crm:P7_took_place_at ?where . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?person +WHERE { + { + ?person crm:P100i_died_in ?death . + } UNION { + ?death crm:P100_was_death_of ?person . + } + { + ?death crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?death . + } +} +``` diff --git a/docs/api/rels/1/placeClassifiedAsConcept.md b/docs/api/rels/1/placeClassifiedAsConcept.md index 40698e00..719fe2a9 100644 --- a/docs/api/rels/1/placeClassifiedAsConcept.md +++ b/docs/api/rels/1/placeClassifiedAsConcept.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/base/#types-and-classifications) From the record for the concept of Cities, the record for Amsterdam would be in the response - ### Details * Class Given: Concept * Returns Class: Place * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?place +WHERE { + { + ?place crm:P2_has_type $current . + } UNION { + $current crm:P2i_is_type_of ?place . + } + ?place a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/placeMemberOfSet.md b/docs/api/rels/1/placeMemberOfSet.md index 5e5d2b5e..8adc2240 100644 --- a/docs/api/rels/1/placeMemberOfSet.md +++ b/docs/api/rels/1/placeMemberOfSet.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/collection/#features) From the record for the set of places in which Van Gogh lived, the record for Arles would be in the response - ### Details * Class Given: Set * Returns Class: Place * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?place +WHERE { + { + ?place la:member_of $current . + } UNION { + $current la:has_member ?place . + } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/placePartOfPlace.md b/docs/api/rels/1/placePartOfPlace.md index e9f47ce2..18b9f295 100644 --- a/docs/api/rels/1/placePartOfPlace.md +++ b/docs/api/rels/1/placePartOfPlace.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/place/#core-information) From the record for Île-de-France, the record for Paris would be in the response - ### Details * Class Given: Place * Returns Class: Place * Relationship: partOf - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?place +WHERE { + { + ?place crm:P89_falls_within $current . + } UNION { + $current crm:P89i_contains ?place . + } + ?place a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/setClassifiedAsConcept.md b/docs/api/rels/1/setClassifiedAsConcept.md index 3e76ef89..5edaf593 100644 --- a/docs/api/rels/1/setClassifiedAsConcept.md +++ b/docs/api/rels/1/setClassifiedAsConcept.md @@ -21,7 +21,18 @@ From the record for the concept of Auction Lots, the record for Lot 14 would be ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?set +WHERE { + { + ?set crm:P2_has_type $current . + } UNION { + $current crm:P2i_is_type_of ?set . + } + ?set a la:Set . +} ``` - diff --git a/docs/api/rels/1/setCreatedAtPlace.md b/docs/api/rels/1/setCreatedAtPlace.md index 7b49d08a..8009ec8e 100644 --- a/docs/api/rels/1/setCreatedAtPlace.md +++ b/docs/api/rels/1/setCreatedAtPlace.md @@ -12,16 +12,32 @@ See the related [model documentation](/model/collection/#features) From the record for New Haven, the record for the set representing the Archives of O. C. Marsh would be in the response - ### Details * Class Given: Place * Returns Class: Set * Relationship: createdAt - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?set +WHERE { + { + ?set crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?set . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + ?set a la:Set . +} ``` + diff --git a/docs/api/rels/1/setCreatedByAgent.md b/docs/api/rels/1/setCreatedByAgent.md index 7f2a0d75..e0209b77 100644 --- a/docs/api/rels/1/setCreatedByAgent.md +++ b/docs/api/rels/1/setCreatedByAgent.md @@ -19,11 +19,29 @@ From the record for O.C. Marsh, the record for his archive would be in the respo * Returns Class: Set * Relationship: createdBy - ### SPARQL -``` -SELECT DISTINCT ?set WHERE { - ?set crm:P94i_was_created_by ?creation . - ?creation crm:P15_was_influenced_by <%current%>. } -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?set +WHERE { + { + ?set crm:P94i_was_created_by ?activity . + } UNION { + ?activity crm:P94_has_created ?set . + } + { + ?activity crm:P15_was_influenced_by $current . + } UNION { + $current crm:P15i_influenced ?activity . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E76_Group . + } + ?set a la:Set . +} +``` diff --git a/docs/api/rels/1/setCreationCausedByActivity.md b/docs/api/rels/1/setCreationCausedByActivity.md index f96e900c..74c80b67 100644 --- a/docs/api/rels/1/setCreationCausedByActivity.md +++ b/docs/api/rels/1/setCreationCausedByActivity.md @@ -21,7 +21,19 @@ See the related [model documentation]() ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . +PREFIX sci: . + +SELECT DISTINCT ?object +WHERE { + { + ?set crm:P94i_was_created_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/sci:O13i_is_triggered_by ?activity . + } UNION { + ?activity sci:O13_triggers/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P94_has_created ?set . + } + ?set a la:Set . +} ``` - diff --git a/docs/api/rels/1/setMemberOfSet.md b/docs/api/rels/1/setMemberOfSet.md index 27a35e10..445980c7 100644 --- a/docs/api/rels/1/setMemberOfSet.md +++ b/docs/api/rels/1/setMemberOfSet.md @@ -12,16 +12,24 @@ See the related [model documentation](/model/collection/#features) From the record for the set for the Archives of O. C. Marsh, the record for Series 1 within that archive would be in the response - ### Details * Class Given: Set * Returns Class: Set * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX la: . + +SELECT DISTINCT ?set +WHERE { + { + ?set la:member_of $current . + } UNION { + $current la:has_member ?set . + } + $current a la:Set . +} ``` - From a4a3941141c3f0b064d270866fc24f61423da029 Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Wed, 1 Oct 2025 13:42:33 +0000 Subject: [PATCH 2/6] fix missing inverse indicators --- docs/api/rels/1/agentClassifiedAsConcept.md | 2 +- docs/api/rels/1/conceptClassifiedAsConcept.md | 2 +- docs/api/rels/1/objectClassifiedAsConcept.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/api/rels/1/agentClassifiedAsConcept.md b/docs/api/rels/1/agentClassifiedAsConcept.md index c5a24e6e..d74284b4 100644 --- a/docs/api/rels/1/agentClassifiedAsConcept.md +++ b/docs/api/rels/1/agentClassifiedAsConcept.md @@ -28,7 +28,7 @@ WHERE { { ?agent crm:P2_has_type $current . } UNION { - $current crm:P2_is_type_of ?agent . + $current crm:P2i_is_type_of ?agent . } } ``` diff --git a/docs/api/rels/1/conceptClassifiedAsConcept.md b/docs/api/rels/1/conceptClassifiedAsConcept.md index 7132d0cf..1bd19e4a 100644 --- a/docs/api/rels/1/conceptClassifiedAsConcept.md +++ b/docs/api/rels/1/conceptClassifiedAsConcept.md @@ -28,7 +28,7 @@ WHERE { { $current crm:P2_has_type ?concept . } UNION { - ?concept crm:P2_is_type_of $current . + ?concept crm:P2i_is_type_of $current . } } ``` diff --git a/docs/api/rels/1/objectClassifiedAsConcept.md b/docs/api/rels/1/objectClassifiedAsConcept.md index ff34ca4e..41fa4fb6 100644 --- a/docs/api/rels/1/objectClassifiedAsConcept.md +++ b/docs/api/rels/1/objectClassifiedAsConcept.md @@ -28,7 +28,7 @@ WHERE { { $current crm:P2_has_type ?concept . } UNION { - ?concept crm:P2_is_type_of $current . + ?concept crm:P2i_is_type_of $current . } $current a crm:E22_Human-Made_Object . } From 672289200a84ce4f362e12f365034dfc23287b30 Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Wed, 1 Oct 2025 15:57:04 +0000 Subject: [PATCH 3/6] more queries --- docs/api/rels/1/temporalMemberOfSet.md | 24 +++++++++++--- docs/api/rels/1/workAboutActivity.md | 27 +++++++++++++--- docs/api/rels/1/workAboutAgent.md | 28 +++++++++++++---- docs/api/rels/1/workAboutConcept.md | 21 ++++++++++--- docs/api/rels/1/workAboutObject.md | 21 ++++++++++--- .../rels/1/workAboutOrRepresentsActivity.md | 27 +++++++++++++--- docs/api/rels/1/workAboutOrRepresentsAgent.md | 29 ++++++++++++----- .../rels/1/workAboutOrRepresentsConcept.md | 21 ++++++++++--- .../api/rels/1/workAboutOrRepresentsObject.md | 20 ++++++++++-- docs/api/rels/1/workAboutOrRepresentsPlace.md | 20 ++++++++++-- docs/api/rels/1/workAboutOrRepresentsSet.md | 22 ++++++++++--- docs/api/rels/1/workAboutOrRepresentsWork.md | 25 +++++++++++++-- docs/api/rels/1/workAboutPlace.md | 24 +++++++++----- docs/api/rels/1/workAboutSet.md | 22 ++++++++++--- docs/api/rels/1/workAboutWork.md | 25 ++++++++++++--- docs/api/rels/1/workClassifiedAsConcept.md | 21 ++++++++++--- docs/api/rels/1/workCreatedAtPlace.md | 24 +++++++++----- docs/api/rels/1/workCreatedByAgent.md | 31 +++++++++++++------ 18 files changed, 346 insertions(+), 86 deletions(-) diff --git a/docs/api/rels/1/temporalMemberOfSet.md b/docs/api/rels/1/temporalMemberOfSet.md index efcf6009..7dea2bbb 100644 --- a/docs/api/rels/1/temporalMemberOfSet.md +++ b/docs/api/rels/1/temporalMemberOfSet.md @@ -12,16 +12,32 @@ See the related [model documentation](/model/collection/#features) From the record for the set of Linked Art face to face meetings, the record for the second face to face meeting in Oxford would be in the response - ### Details * Class Given: Set * Returns Class: Temporal * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?temporal +WHERE { + { + ?temporal la:member_of $current . + } UNION { + $current la:has_member ?temporal . + } + { + ?temporal a crm:E4_Period . + } UNION { + ?temporal a crm:E5_Event . + } UNION { + ?temporal a crm:E7_Activity . + } + $current a la:Set . +} ``` - diff --git a/docs/api/rels/1/workAboutActivity.md b/docs/api/rels/1/workAboutActivity.md index 0c2e118f..1a598ade 100644 --- a/docs/api/rels/1/workAboutActivity.md +++ b/docs/api/rels/1/workAboutActivity.md @@ -12,16 +12,35 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the Bronze Age, the record for a work about the Bronze Age would be in the response - ### Details * Class Given: Temporal * Returns Class: Work * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + $current crm:P129_is_about ?work . + } UNION { + ?work crm:P129i_is_subject_of $current . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E4_Period . + } UNION { + $current a crm:E5_Event . + } UNION { + $current a crm:E7_Activity . + } +} ``` - diff --git a/docs/api/rels/1/workAboutAgent.md b/docs/api/rels/1/workAboutAgent.md index ae7f8af4..059e2af7 100644 --- a/docs/api/rels/1/workAboutAgent.md +++ b/docs/api/rels/1/workAboutAgent.md @@ -21,10 +21,26 @@ From the record for Abraham Lincoln, the record for We are Lincoln Men : Abraham ### SPARQL -``` -SELECT DISTINCT ?work WHERE { - BIND(<%current%> AS ?who) - ?work crm:P129_is_about ?who . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E76_Group . + } +} +``` diff --git a/docs/api/rels/1/workAboutConcept.md b/docs/api/rels/1/workAboutConcept.md index 31d1eff4..37b489ab 100644 --- a/docs/api/rels/1/workAboutConcept.md +++ b/docs/api/rels/1/workAboutConcept.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the concept of Democracy, the record for Diamond's work "In Search of Democracy" would be in the response - ### Details * Class Given: Concept * Returns Class: Work * Relationship: about - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E55_Type . +} ``` - diff --git a/docs/api/rels/1/workAboutObject.md b/docs/api/rels/1/workAboutObject.md index 528b780a..455f1442 100644 --- a/docs/api/rels/1/workAboutObject.md +++ b/docs/api/rels/1/workAboutObject.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the Night Watch, the record for Bikker's "The Night Watch" would be in the response - ### Details * Class Given: HumanMadeObject * Returns Class: Work * Relationship: about - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E21_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsActivity.md b/docs/api/rels/1/workAboutOrRepresentsActivity.md index a1e590c1..d979a476 100644 --- a/docs/api/rels/1/workAboutOrRepresentsActivity.md +++ b/docs/api/rels/1/workAboutOrRepresentsActivity.md @@ -12,16 +12,35 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the activity of the Battle of Bunker Hill, the records for the text of an article about it and the image of Trumbull's painting would both be in the response - ### Details * Class Given: Temporal * Returns Class: Work * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E4_Period . + } UNION { + $current a crm:E5_Event . + } UNION { + $current a crm:E7_Activity . + } +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsAgent.md b/docs/api/rels/1/workAboutOrRepresentsAgent.md index be82d099..fc018eee 100644 --- a/docs/api/rels/1/workAboutOrRepresentsAgent.md +++ b/docs/api/rels/1/workAboutOrRepresentsAgent.md @@ -12,20 +12,33 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for John Trumbull, the visual items and texts that depict him (such as a bibliographic record and a self-portrait) would be in the response - ### Details * Class Given: Agent * Returns Class: Work * Relationship: about / represents - ### SPARQL -``` -SELECT DISTINCT ?work WHERE { - { - ?work crm:P138_represents <%current%>. } UNION { - ?work crm:P129_is_about <%current%>. } + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E76_Group . + } } ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsConcept.md b/docs/api/rels/1/workAboutOrRepresentsConcept.md index 990b17f1..1673a5a4 100644 --- a/docs/api/rels/1/workAboutOrRepresentsConcept.md +++ b/docs/api/rels/1/workAboutOrRepresentsConcept.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the concept of Law and Order, the record for the work of the Night Watch would be in the response - ### Details * Class Given: Concept * Returns Class: Concept * Relationship: about / represents - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E55_Type . +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsObject.md b/docs/api/rels/1/workAboutOrRepresentsObject.md index 7cbdd5ef..079a94bb 100644 --- a/docs/api/rels/1/workAboutOrRepresentsObject.md +++ b/docs/api/rels/1/workAboutOrRepresentsObject.md @@ -19,9 +19,23 @@ See the related [model documentation](/model/object/aboutness/#subject) * Returns Class: Work * Relationship: about / represents - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E22_Human-Made_Object . +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsPlace.md b/docs/api/rels/1/workAboutOrRepresentsPlace.md index a89489db..9d0a4fda 100644 --- a/docs/api/rels/1/workAboutOrRepresentsPlace.md +++ b/docs/api/rels/1/workAboutOrRepresentsPlace.md @@ -12,7 +12,6 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for Paris, the records for the image carried by a painting of Notre Dame and the text of a book about the city would be in the response - ### Details * Class Given: Place @@ -21,7 +20,22 @@ From the record for Paris, the records for the image carried by a painting of No ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsSet.md b/docs/api/rels/1/workAboutOrRepresentsSet.md index 384de710..a74e9481 100644 --- a/docs/api/rels/1/workAboutOrRepresentsSet.md +++ b/docs/api/rels/1/workAboutOrRepresentsSet.md @@ -12,16 +12,30 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the set for the Archives of O. C. Marsh, the records for an article about the archive and an image of the archive would be in the response - ### Details * Class Given: Set * Returns Class: Work * Relationship: about / represents - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a la:Set . +} ``` - diff --git a/docs/api/rels/1/workAboutOrRepresentsWork.md b/docs/api/rels/1/workAboutOrRepresentsWork.md index 0a5ca8ba..6ccabb47 100644 --- a/docs/api/rels/1/workAboutOrRepresentsWork.md +++ b/docs/api/rels/1/workAboutOrRepresentsWork.md @@ -18,9 +18,28 @@ See the related [model documentation](/model/object/aboutness/#subject) * Returns Class: Work * Relationship: about / represents - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about|crm:P138_represents $current . + } UNION { + $current crm:P129i_is_subject_of|crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E33_Linguistic_Object . + } UNION { + $current a crm:E36_Visual_Item . + } +} ``` - diff --git a/docs/api/rels/1/workAboutPlace.md b/docs/api/rels/1/workAboutPlace.md index 82d820f5..3b938ac4 100644 --- a/docs/api/rels/1/workAboutPlace.md +++ b/docs/api/rels/1/workAboutPlace.md @@ -12,19 +12,29 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for Paris France, the record for Victor Hugo's work "Paris" would be in the response - ### Details * Class Given: Place * Returns Class: Work * Relationship: about - ### SPARQL -``` -SELECT DISTINCT ?work WHERE { - BIND(<%current%>as ?where) - ?work crm:P129_is_about ?where . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/workAboutSet.md b/docs/api/rels/1/workAboutSet.md index b518ab6f..3b6d71e4 100644 --- a/docs/api/rels/1/workAboutSet.md +++ b/docs/api/rels/1/workAboutSet.md @@ -12,16 +12,30 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for the set for the Archives of O. C. Marsh, a text of an article about the archives would be in the response - ### Details * Class Given: Set * Returns Class: Work * Relationship: about - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a la:Set . +} ``` - diff --git a/docs/api/rels/1/workAboutWork.md b/docs/api/rels/1/workAboutWork.md index df55ba97..5134a321 100644 --- a/docs/api/rels/1/workAboutWork.md +++ b/docs/api/rels/1/workAboutWork.md @@ -12,16 +12,33 @@ See the related [model documentation](/model/object/aboutness/#subject) From the record for The Lord of the Rings, the record for an article about Tolkien's work would be in the response - ### Details * Class Given: Work * Returns Class: Work * Relationship: about - ### SPARQL -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P129_is_about $current . + } UNION { + $current crm:P129i_is_subject_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E33_Linguistic_Object . + } UNION { + $current a crm:E36_Visual_Item . + } +} ``` - diff --git a/docs/api/rels/1/workClassifiedAsConcept.md b/docs/api/rels/1/workClassifiedAsConcept.md index 4602c765..58a0d2c8 100644 --- a/docs/api/rels/1/workClassifiedAsConcept.md +++ b/docs/api/rels/1/workClassifiedAsConcept.md @@ -12,16 +12,29 @@ See the related [model documentation](/model/base/#types-and-classifications) From the record for Impressionism, the record for the work of Van Gogh's "Irises" would be in the response - ### Details * Class Given: Concept * Returns Class: Work * Relationship: classifiedAs - ### SPARQL -``` +```sparql +PREFIX crm: . +PREFIX la: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P2_has_type $current . + } UNION { + $current crm:P2i_is_type_of ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } +} ``` - diff --git a/docs/api/rels/1/workCreatedAtPlace.md b/docs/api/rels/1/workCreatedAtPlace.md index 53da06b5..c464643e 100644 --- a/docs/api/rels/1/workCreatedAtPlace.md +++ b/docs/api/rels/1/workCreatedAtPlace.md @@ -12,19 +12,29 @@ See the related [model documentation](/model/document/#creation-and-publication) From the record for Oxford UK, the Lord of the Rings and the Hobbit would be in the response - ### Details * Class Given: Place * Returns Class: Work * Relationship: createdAt - ### SPARQL -``` -SELECT DISTINCT ?work WHERE { - BIND(<%current%> as ?where) - ?work crm:P94i_was_created_by/crm:P9_consists_of*/crm:P7_took_place_at ?where . + +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P94i_was_created_by/crm:P9_consists_of*/crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed/crm:P9i_forms_part_of*/crm:P94_has_created ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . } + $current a crm:E53_Place . +} ``` - diff --git a/docs/api/rels/1/workCreatedByAgent.md b/docs/api/rels/1/workCreatedByAgent.md index 53100553..4baec5dd 100644 --- a/docs/api/rels/1/workCreatedByAgent.md +++ b/docs/api/rels/1/workCreatedByAgent.md @@ -12,20 +12,33 @@ See the related [model documentation](/model/document/#creation-and-publication) From the record for André Chastel, the record for The Vatican Frescoes of Michelangelo would be in the response. - ### Details * Class Given: Agent * Returns Class: Work * Relationship: createdBy - ### SPARQL -``` -SELECT DISTINCT ?work WHERE { - BIND(<%current%> as ?who) - ?work crm:P94i_was_created_by ?cre . - ?cre crm:P9_consists_of*/crm:P14_carried_out_by ?who . - } -``` +```sparql +PREFIX crm: . + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P94i_was_created_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P14_carried_out_by $current . + } UNION { + $current crm:P7i_witnessed/(crm:P9i_forms_part_of|crm:P9_consists_of)*/crm:P14i_performed ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E22_Person . + } UNION { + $current a crm:E76_Group . + } +} +``` From fa1f0a38a2b0af96fdfded5a566ec2d06d766159 Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Thu, 2 Oct 2025 09:40:44 +0000 Subject: [PATCH 4/6] fix PREFIX statements --- docs/api/rels/1/activityCarriedOutByAgent.md | 2 +- docs/api/rels/1/activityCausedByActivity.md | 2 +- docs/api/rels/1/activityClassifiedAsConcept.md | 2 +- docs/api/rels/1/activityPartOfActivity.md | 2 +- docs/api/rels/1/activityParticipantAgent.md | 2 +- docs/api/rels/1/activityTookPlaceAtPlace.md | 2 +- docs/api/rels/1/activityUsedObject.md | 2 +- docs/api/rels/1/activityUsedSet.md | 2 +- docs/api/rels/1/activityUsedWork.md | 2 +- docs/api/rels/1/agentActiveAtPlace.md | 2 +- docs/api/rels/1/agentBornOrFormedAtPlace.md | 2 +- docs/api/rels/1/agentClassifiedAsConcept.md | 2 +- docs/api/rels/1/agentDiedOrDissolvedAtPlace.md | 2 +- docs/api/rels/1/agentMemberOfGroup.md | 2 +- docs/api/rels/1/agentResidentAtPlace.md | 2 +- docs/api/rels/1/conceptBroaderConcept.md | 2 +- docs/api/rels/1/conceptClassifiedAsConcept.md | 2 +- docs/api/rels/1/conceptCreationCausedByActivity.md | 2 +- docs/api/rels/1/conceptInfluencedByActivity.md | 2 +- docs/api/rels/1/conceptInfluencedByAgent.md | 2 +- docs/api/rels/1/conceptInfluencedByConcept.md | 2 +- docs/api/rels/1/conceptInfluencedByObject.md | 2 +- docs/api/rels/1/conceptInfluencedByPlace.md | 2 +- docs/api/rels/1/conceptInfluencedBySet.md | 4 ++-- docs/api/rels/1/conceptInfluencedByWork.md | 2 +- docs/api/rels/1/conceptMemberOfSet.md | 4 ++-- docs/api/rels/1/entityMemberOfSet.md | 2 +- docs/api/rels/1/groupActiveAtPlace.md | 2 +- docs/api/rels/1/groupDissolvedAtPlace.md | 2 +- docs/api/rels/1/groupFormedAtPlace.md | 2 +- docs/api/rels/1/groupFoundedByAgent.md | 2 +- docs/api/rels/1/objectCarriesWork.md | 2 +- docs/api/rels/1/objectClassifiedAsConcept.md | 2 +- docs/api/rels/1/objectCuratedByAgent.md | 2 +- docs/api/rels/1/objectCurrentPlace.md | 2 +- docs/api/rels/1/objectDestructionCausedByActivity.md | 2 +- docs/api/rels/1/objectEncounteredAtPlace.md | 2 +- docs/api/rels/1/objectEncounteredByAgent.md | 2 +- docs/api/rels/1/objectMadeOfMaterial.md | 2 +- docs/api/rels/1/objectMemberOfSet.md | 4 ++-- docs/api/rels/1/objectOwnedByAgent.md | 2 +- docs/api/rels/1/objectPartOfObject.md | 2 +- docs/api/rels/1/objectProducedAtPlace.md | 2 +- docs/api/rels/1/objectProducedByAgent.md | 2 +- docs/api/rels/1/objectProductionCausedByActivity.md | 4 ++-- docs/api/rels/1/objectProductionInfluencedByAgent.md | 4 ++-- docs/api/rels/1/objectProductionInfluencedByObject.md | 4 ++-- docs/api/rels/1/objectProductionInfluencedByPlace.md | 4 ++-- docs/api/rels/1/objectProductionInfluencedByWork.md | 4 ++-- docs/api/rels/1/objectProductionTechniqueConcept.md | 2 +- docs/api/rels/1/objectShowsWork.md | 2 +- docs/api/rels/1/personActiveAtPlace.md | 2 +- docs/api/rels/1/personBornAtPlace.md | 2 +- docs/api/rels/1/personDeathCausedByActivity.md | 2 +- docs/api/rels/1/personDiedAtPlace.md | 2 +- docs/api/rels/1/placeClassifiedAsConcept.md | 2 +- docs/api/rels/1/placeMemberOfSet.md | 4 ++-- docs/api/rels/1/placePartOfPlace.md | 2 +- docs/api/rels/1/setClassifiedAsConcept.md | 4 ++-- docs/api/rels/1/setCreatedAtPlace.md | 4 ++-- docs/api/rels/1/setCreatedByAgent.md | 4 ++-- docs/api/rels/1/setCreationCausedByActivity.md | 6 +++--- docs/api/rels/1/setMemberOfSet.md | 2 +- docs/api/rels/1/temporalMemberOfSet.md | 4 ++-- docs/api/rels/1/workAboutActivity.md | 2 +- docs/api/rels/1/workAboutAgent.md | 2 +- docs/api/rels/1/workAboutConcept.md | 2 +- docs/api/rels/1/workAboutObject.md | 2 +- docs/api/rels/1/workAboutOrRepresentsActivity.md | 2 +- docs/api/rels/1/workAboutOrRepresentsAgent.md | 2 +- docs/api/rels/1/workAboutOrRepresentsConcept.md | 2 +- docs/api/rels/1/workAboutOrRepresentsObject.md | 2 +- docs/api/rels/1/workAboutOrRepresentsPlace.md | 2 +- docs/api/rels/1/workAboutOrRepresentsSet.md | 4 ++-- docs/api/rels/1/workAboutOrRepresentsWork.md | 4 ++-- docs/api/rels/1/workAboutPlace.md | 2 +- docs/api/rels/1/workAboutSet.md | 4 ++-- docs/api/rels/1/workAboutWork.md | 2 +- docs/api/rels/1/workClassifiedAsConcept.md | 4 ++-- docs/api/rels/1/workCreatedAtPlace.md | 2 +- docs/api/rels/1/workCreatedByAgent.md | 2 +- 81 files changed, 100 insertions(+), 100 deletions(-) diff --git a/docs/api/rels/1/activityCarriedOutByAgent.md b/docs/api/rels/1/activityCarriedOutByAgent.md index b92b6b14..3efc9c02 100644 --- a/docs/api/rels/1/activityCarriedOutByAgent.md +++ b/docs/api/rels/1/activityCarriedOutByAgent.md @@ -21,7 +21,7 @@ From the record for the National Gallery of Art, the record for the Manet exhibi ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityCausedByActivity.md b/docs/api/rels/1/activityCausedByActivity.md index 66bd0ed0..b2586fe5 100644 --- a/docs/api/rels/1/activityCausedByActivity.md +++ b/docs/api/rels/1/activityCausedByActivity.md @@ -21,7 +21,7 @@ From the record for a fire that damaged a statue, the record for the conservatio ### SPARQL ```sparql -PREFIX sci: . +PREFIX sci: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityClassifiedAsConcept.md b/docs/api/rels/1/activityClassifiedAsConcept.md index ba635430..6cb6809e 100644 --- a/docs/api/rels/1/activityClassifiedAsConcept.md +++ b/docs/api/rels/1/activityClassifiedAsConcept.md @@ -21,7 +21,7 @@ From the record for the concept of Exhibitions, the record for "Manet and Modern ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityPartOfActivity.md b/docs/api/rels/1/activityPartOfActivity.md index 48c0dd6b..e4e2de09 100644 --- a/docs/api/rels/1/activityPartOfActivity.md +++ b/docs/api/rels/1/activityPartOfActivity.md @@ -21,7 +21,7 @@ From the record for the Bronze Age, the record for the Middle Bronze Age would b ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityParticipantAgent.md b/docs/api/rels/1/activityParticipantAgent.md index 8ff0fbaf..976c48ac 100644 --- a/docs/api/rels/1/activityParticipantAgent.md +++ b/docs/api/rels/1/activityParticipantAgent.md @@ -21,7 +21,7 @@ From the record for Tristan Tzara, the record for Cabaret Voltaire would be in t ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityTookPlaceAtPlace.md b/docs/api/rels/1/activityTookPlaceAtPlace.md index 34b69ed5..0919ed36 100644 --- a/docs/api/rels/1/activityTookPlaceAtPlace.md +++ b/docs/api/rels/1/activityTookPlaceAtPlace.md @@ -21,7 +21,7 @@ From the record for New Haven, the record for the exhibition activity Life, Libe ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityUsedObject.md b/docs/api/rels/1/activityUsedObject.md index fd81968e..c982da42 100644 --- a/docs/api/rels/1/activityUsedObject.md +++ b/docs/api/rels/1/activityUsedObject.md @@ -21,7 +21,7 @@ From the record for the Night Watch, the record for the conservation work on the ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityUsedSet.md b/docs/api/rels/1/activityUsedSet.md index 92b08e99..f366e442 100644 --- a/docs/api/rels/1/activityUsedSet.md +++ b/docs/api/rels/1/activityUsedSet.md @@ -21,7 +21,7 @@ From the record for the set of objects shown in an exhibition, the record for th ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/activityUsedWork.md b/docs/api/rels/1/activityUsedWork.md index da00c079..1c5c1059 100644 --- a/docs/api/rels/1/activityUsedWork.md +++ b/docs/api/rels/1/activityUsedWork.md @@ -22,7 +22,7 @@ See the related [model documentation]() ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?activity WHERE { diff --git a/docs/api/rels/1/agentActiveAtPlace.md b/docs/api/rels/1/agentActiveAtPlace.md index fb852e54..b84afa72 100644 --- a/docs/api/rels/1/agentActiveAtPlace.md +++ b/docs/api/rels/1/agentActiveAtPlace.md @@ -21,7 +21,7 @@ From the record for Harlem, New York, the record for A.Philip Randolph would be ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/agentBornOrFormedAtPlace.md b/docs/api/rels/1/agentBornOrFormedAtPlace.md index cb195fb4..0fe03f6f 100644 --- a/docs/api/rels/1/agentBornOrFormedAtPlace.md +++ b/docs/api/rels/1/agentBornOrFormedAtPlace.md @@ -21,7 +21,7 @@ From the record for Harlem, New York, the record for Ayize Jama-Everett would be ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/agentClassifiedAsConcept.md b/docs/api/rels/1/agentClassifiedAsConcept.md index d74284b4..e395381c 100644 --- a/docs/api/rels/1/agentClassifiedAsConcept.md +++ b/docs/api/rels/1/agentClassifiedAsConcept.md @@ -21,7 +21,7 @@ From the record for the concept of the Dutch nationality, the record for Rembran ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md b/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md index 4cc605a7..aff7621f 100644 --- a/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md +++ b/docs/api/rels/1/agentDiedOrDissolvedAtPlace.md @@ -21,7 +21,7 @@ From the record for Harlem, New York, the record for Howard Johnson-1941-2021 wo ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/agentMemberOfGroup.md b/docs/api/rels/1/agentMemberOfGroup.md index 6ddd7383..5890dce8 100644 --- a/docs/api/rels/1/agentMemberOfGroup.md +++ b/docs/api/rels/1/agentMemberOfGroup.md @@ -21,7 +21,7 @@ From the record for Societe Anonyme, Katherine Dreier and Fortunato Depero would ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/agentResidentAtPlace.md b/docs/api/rels/1/agentResidentAtPlace.md index 28f60e22..706a5da2 100644 --- a/docs/api/rels/1/agentResidentAtPlace.md +++ b/docs/api/rels/1/agentResidentAtPlace.md @@ -21,7 +21,7 @@ From the record for Brooklyn, New York the record for E.V. Day would be in the r ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?agent WHERE { diff --git a/docs/api/rels/1/conceptBroaderConcept.md b/docs/api/rels/1/conceptBroaderConcept.md index c67b350e..484e5adb 100644 --- a/docs/api/rels/1/conceptBroaderConcept.md +++ b/docs/api/rels/1/conceptBroaderConcept.md @@ -21,7 +21,7 @@ From the record for the concept for Visual Art object types, the record for Pain ### SPARQL ```sparql -PREFIX skos: . +PREFIX skos: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptClassifiedAsConcept.md b/docs/api/rels/1/conceptClassifiedAsConcept.md index 1bd19e4a..24ba1e97 100644 --- a/docs/api/rels/1/conceptClassifiedAsConcept.md +++ b/docs/api/rels/1/conceptClassifiedAsConcept.md @@ -21,7 +21,7 @@ From the record for the concept of Nationalities, the record for Dutch would be ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptCreationCausedByActivity.md b/docs/api/rels/1/conceptCreationCausedByActivity.md index b62ae4e2..7ffbc332 100644 --- a/docs/api/rels/1/conceptCreationCausedByActivity.md +++ b/docs/api/rels/1/conceptCreationCausedByActivity.md @@ -22,7 +22,7 @@ See the related [model documentation]() ### SPARQL ``` -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByActivity.md b/docs/api/rels/1/conceptInfluencedByActivity.md index e83dfd90..cb77785f 100644 --- a/docs/api/rels/1/conceptInfluencedByActivity.md +++ b/docs/api/rels/1/conceptInfluencedByActivity.md @@ -21,7 +21,7 @@ From the record for the 15th Century (a Period), the record for the History of F ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByAgent.md b/docs/api/rels/1/conceptInfluencedByAgent.md index 5540343c..0b34bb6a 100644 --- a/docs/api/rels/1/conceptInfluencedByAgent.md +++ b/docs/api/rels/1/conceptInfluencedByAgent.md @@ -21,7 +21,7 @@ From the record for Rembrandt, the record for the concept 'Rembrandt -- Aestheti ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByConcept.md b/docs/api/rels/1/conceptInfluencedByConcept.md index 2b7f0602..a57a480b 100644 --- a/docs/api/rels/1/conceptInfluencedByConcept.md +++ b/docs/api/rels/1/conceptInfluencedByConcept.md @@ -21,7 +21,7 @@ From the record for the concept of History, the record for History of France wou ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByObject.md b/docs/api/rels/1/conceptInfluencedByObject.md index bdb1b87d..27d574cd 100644 --- a/docs/api/rels/1/conceptInfluencedByObject.md +++ b/docs/api/rels/1/conceptInfluencedByObject.md @@ -23,7 +23,7 @@ From the record for the Night Watch, the concept of the Reception of the Night W ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByPlace.md b/docs/api/rels/1/conceptInfluencedByPlace.md index 87c09bcc..49d4e3a9 100644 --- a/docs/api/rels/1/conceptInfluencedByPlace.md +++ b/docs/api/rels/1/conceptInfluencedByPlace.md @@ -21,7 +21,7 @@ From the record for the Netherlands, the record for Dutch Golden Age Paintings w ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedBySet.md b/docs/api/rels/1/conceptInfluencedBySet.md index 4a84b685..cd320c95 100644 --- a/docs/api/rels/1/conceptInfluencedBySet.md +++ b/docs/api/rels/1/conceptInfluencedBySet.md @@ -22,8 +22,8 @@ See the related [model documentation](/model/concept/#creation-and-influences) ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptInfluencedByWork.md b/docs/api/rels/1/conceptInfluencedByWork.md index 0011ee41..cd575f53 100644 --- a/docs/api/rels/1/conceptInfluencedByWork.md +++ b/docs/api/rels/1/conceptInfluencedByWork.md @@ -21,7 +21,7 @@ From the record for The Lord of the Rings, the record for the concept of the His ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/conceptMemberOfSet.md b/docs/api/rels/1/conceptMemberOfSet.md index 18a99120..20a372bd 100644 --- a/docs/api/rels/1/conceptMemberOfSet.md +++ b/docs/api/rels/1/conceptMemberOfSet.md @@ -21,8 +21,8 @@ From the record for the AAT concept scheme (a Set), the record for AAT's Primary ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?concept WHERE { diff --git a/docs/api/rels/1/entityMemberOfSet.md b/docs/api/rels/1/entityMemberOfSet.md index 5c53524d..72204fd2 100644 --- a/docs/api/rels/1/entityMemberOfSet.md +++ b/docs/api/rels/1/entityMemberOfSet.md @@ -21,7 +21,7 @@ From the record for the Getty's painting department's objects, the record for Sp ### SPARQL ```sparql -PREFIX la: . +PREFIX la: SELECT DISTINCT ?entity WHERE { diff --git a/docs/api/rels/1/groupActiveAtPlace.md b/docs/api/rels/1/groupActiveAtPlace.md index 2c17f22d..2043e651 100644 --- a/docs/api/rels/1/groupActiveAtPlace.md +++ b/docs/api/rels/1/groupActiveAtPlace.md @@ -21,7 +21,7 @@ From the record for Paris France, the record for Goupil & Cie would be in the re ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?group WHERE { diff --git a/docs/api/rels/1/groupDissolvedAtPlace.md b/docs/api/rels/1/groupDissolvedAtPlace.md index 28a1ab7d..08bd82fb 100644 --- a/docs/api/rels/1/groupDissolvedAtPlace.md +++ b/docs/api/rels/1/groupDissolvedAtPlace.md @@ -21,7 +21,7 @@ From the record for New Haven Connecticut, the record for Société Anonyme woul ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?group WHERE { diff --git a/docs/api/rels/1/groupFormedAtPlace.md b/docs/api/rels/1/groupFormedAtPlace.md index cba2da7e..7d5f44e7 100644 --- a/docs/api/rels/1/groupFormedAtPlace.md +++ b/docs/api/rels/1/groupFormedAtPlace.md @@ -21,7 +21,7 @@ From the record for Los Altos California, the record for Apple Computers would b ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?group WHERE { diff --git a/docs/api/rels/1/groupFoundedByAgent.md b/docs/api/rels/1/groupFoundedByAgent.md index 32a87ce3..d250c490 100644 --- a/docs/api/rels/1/groupFoundedByAgent.md +++ b/docs/api/rels/1/groupFoundedByAgent.md @@ -21,7 +21,7 @@ From the record for Katherine Dreier, Man Ray or Marcel Duchamps, the group Soci ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?group WHERE { diff --git a/docs/api/rels/1/objectCarriesWork.md b/docs/api/rels/1/objectCarriesWork.md index 67fff78e..88dd4c91 100644 --- a/docs/api/rels/1/objectCarriesWork.md +++ b/docs/api/rels/1/objectCarriesWork.md @@ -21,7 +21,7 @@ From the record for the Lord of the Rings, the record for the copy in the Britis ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectClassifiedAsConcept.md b/docs/api/rels/1/objectClassifiedAsConcept.md index 41fa4fb6..01ffc0ee 100644 --- a/docs/api/rels/1/objectClassifiedAsConcept.md +++ b/docs/api/rels/1/objectClassifiedAsConcept.md @@ -21,7 +21,7 @@ From the record for Paintings, the record for Sunflowers would be in the respons ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectCuratedByAgent.md b/docs/api/rels/1/objectCuratedByAgent.md index 3321b0e0..bf660218 100644 --- a/docs/api/rels/1/objectCuratedByAgent.md +++ b/docs/api/rels/1/objectCuratedByAgent.md @@ -21,7 +21,7 @@ From the record for the Paintings Department of the Rijksmuseum, the record for ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectCurrentPlace.md b/docs/api/rels/1/objectCurrentPlace.md index 500e8c84..05f432c2 100644 --- a/docs/api/rels/1/objectCurrentPlace.md +++ b/docs/api/rels/1/objectCurrentPlace.md @@ -21,7 +21,7 @@ From the record for Getty's gallery W204, the record for Jeanne (Spring) would b ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectDestructionCausedByActivity.md b/docs/api/rels/1/objectDestructionCausedByActivity.md index b887c73c..334c48f8 100644 --- a/docs/api/rels/1/objectDestructionCausedByActivity.md +++ b/docs/api/rels/1/objectDestructionCausedByActivity.md @@ -21,7 +21,7 @@ From the record for a fire that destroyed a museum, the record for an object des ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectEncounteredAtPlace.md b/docs/api/rels/1/objectEncounteredAtPlace.md index cd866c61..9cf7f939 100644 --- a/docs/api/rels/1/objectEncounteredAtPlace.md +++ b/docs/api/rels/1/objectEncounteredAtPlace.md @@ -21,7 +21,7 @@ From the record for the Burgess Shale, the record for Anomalocaris Canadiensis w ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectEncounteredByAgent.md b/docs/api/rels/1/objectEncounteredByAgent.md index 9f52bf75..3badb0b6 100644 --- a/docs/api/rels/1/objectEncounteredByAgent.md +++ b/docs/api/rels/1/objectEncounteredByAgent.md @@ -21,7 +21,7 @@ From the record for O.C. Marsh, the record for the Torosaurus holotype would be ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectMadeOfMaterial.md b/docs/api/rels/1/objectMadeOfMaterial.md index 4c95a753..61d9e416 100644 --- a/docs/api/rels/1/objectMadeOfMaterial.md +++ b/docs/api/rels/1/objectMadeOfMaterial.md @@ -21,7 +21,7 @@ From the record for Canvas, the record for The Night Watch would be in the respo ### SPARQL ``` -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectMemberOfSet.md b/docs/api/rels/1/objectMemberOfSet.md index d6962bfc..2efe17a5 100644 --- a/docs/api/rels/1/objectMemberOfSet.md +++ b/docs/api/rels/1/objectMemberOfSet.md @@ -21,8 +21,8 @@ From the record for the Rijksmuseum's highlight objects, the record for the Nigh ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectOwnedByAgent.md b/docs/api/rels/1/objectOwnedByAgent.md index 188b5edf..9722a358 100644 --- a/docs/api/rels/1/objectOwnedByAgent.md +++ b/docs/api/rels/1/objectOwnedByAgent.md @@ -21,7 +21,7 @@ From the record for the Rijksmuseum, the record for The Night Watch would be in ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectPartOfObject.md b/docs/api/rels/1/objectPartOfObject.md index 4a312727..6dcb8fc3 100644 --- a/docs/api/rels/1/objectPartOfObject.md +++ b/docs/api/rels/1/objectPartOfObject.md @@ -21,7 +21,7 @@ From the record for the Night Watch, the record for the frame of the Night Watch ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProducedAtPlace.md b/docs/api/rels/1/objectProducedAtPlace.md index b371c141..289facbf 100644 --- a/docs/api/rels/1/objectProducedAtPlace.md +++ b/docs/api/rels/1/objectProducedAtPlace.md @@ -21,7 +21,7 @@ From the record for Amsterdam, the record for The Night Watch would be in the re ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProducedByAgent.md b/docs/api/rels/1/objectProducedByAgent.md index 85948ad6..491f4f2e 100644 --- a/docs/api/rels/1/objectProducedByAgent.md +++ b/docs/api/rels/1/objectProducedByAgent.md @@ -21,7 +21,7 @@ From the record for Rembrandt, the record for The Night Watch would be in the re ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionCausedByActivity.md b/docs/api/rels/1/objectProductionCausedByActivity.md index cd6f85b3..b83a125c 100644 --- a/docs/api/rels/1/objectProductionCausedByActivity.md +++ b/docs/api/rels/1/objectProductionCausedByActivity.md @@ -21,8 +21,8 @@ From the record for a commission activity, the record for the object that was pr ### SPARQL ```sparql -PREFIX crm: . -PREFIX sci: . +PREFIX crm: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionInfluencedByAgent.md b/docs/api/rels/1/objectProductionInfluencedByAgent.md index 04cc9631..41db43f4 100644 --- a/docs/api/rels/1/objectProductionInfluencedByAgent.md +++ b/docs/api/rels/1/objectProductionInfluencedByAgent.md @@ -21,8 +21,8 @@ From the record for Albert Bierstadt, the prints of his works (which were not ne ### SPARQL ```sparql -PREFIX crm: . -PREFIX sci: . +PREFIX crm: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionInfluencedByObject.md b/docs/api/rels/1/objectProductionInfluencedByObject.md index ca4519db..775c6c0a 100644 --- a/docs/api/rels/1/objectProductionInfluencedByObject.md +++ b/docs/api/rels/1/objectProductionInfluencedByObject.md @@ -21,8 +21,8 @@ From the record a painting that was copied, the record for the copy would be in ### SPARQL ```sparql -PREFIX crm: . -PREFIX sci: . +PREFIX crm: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionInfluencedByPlace.md b/docs/api/rels/1/objectProductionInfluencedByPlace.md index fde6b87c..d052f0a6 100644 --- a/docs/api/rels/1/objectProductionInfluencedByPlace.md +++ b/docs/api/rels/1/objectProductionInfluencedByPlace.md @@ -22,8 +22,8 @@ See the related [model documentation](/model/object/production/#inspirations-stu ### SPARQL ```sparql -PREFIX crm: . -PREFIX sci: . +PREFIX crm: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionInfluencedByWork.md b/docs/api/rels/1/objectProductionInfluencedByWork.md index fddb0d58..16198743 100644 --- a/docs/api/rels/1/objectProductionInfluencedByWork.md +++ b/docs/api/rels/1/objectProductionInfluencedByWork.md @@ -22,8 +22,8 @@ See the related [model documentation](/model/object/production/#inspirations-stu ### SPARQL ```sparql -PREFIX crm: . -PREFIX sci: . +PREFIX crm: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectProductionTechniqueConcept.md b/docs/api/rels/1/objectProductionTechniqueConcept.md index e5339681..ada285ce 100644 --- a/docs/api/rels/1/objectProductionTechniqueConcept.md +++ b/docs/api/rels/1/objectProductionTechniqueConcept.md @@ -21,7 +21,7 @@ From the record for Bronze Casting, the record for The Thinker would be in the r ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/objectShowsWork.md b/docs/api/rels/1/objectShowsWork.md index 57b26eee..b8fc7931 100644 --- a/docs/api/rels/1/objectShowsWork.md +++ b/docs/api/rels/1/objectShowsWork.md @@ -21,7 +21,7 @@ From the record for the image of the Night Watch, the record for the painting wo ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/personActiveAtPlace.md b/docs/api/rels/1/personActiveAtPlace.md index 58c36d9b..9190e8b4 100644 --- a/docs/api/rels/1/personActiveAtPlace.md +++ b/docs/api/rels/1/personActiveAtPlace.md @@ -21,7 +21,7 @@ From the record for Arles France, the record for Vincent Van Gogh would be in th ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?person WHERE { diff --git a/docs/api/rels/1/personBornAtPlace.md b/docs/api/rels/1/personBornAtPlace.md index 90a81154..d3dcf055 100644 --- a/docs/api/rels/1/personBornAtPlace.md +++ b/docs/api/rels/1/personBornAtPlace.md @@ -22,7 +22,7 @@ From the record for Leiden, the record for Rembrandt would be in the response ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?person WHERE { diff --git a/docs/api/rels/1/personDeathCausedByActivity.md b/docs/api/rels/1/personDeathCausedByActivity.md index 05ef0a95..c318eb55 100644 --- a/docs/api/rels/1/personDeathCausedByActivity.md +++ b/docs/api/rels/1/personDeathCausedByActivity.md @@ -21,7 +21,7 @@ From the record for the Bubonic Plague, the record for a person who died of the ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?person WHERE { diff --git a/docs/api/rels/1/personDiedAtPlace.md b/docs/api/rels/1/personDiedAtPlace.md index f61238d6..109df842 100644 --- a/docs/api/rels/1/personDiedAtPlace.md +++ b/docs/api/rels/1/personDiedAtPlace.md @@ -21,7 +21,7 @@ From the record for Amsterdam, the record for Rembrandt would be in the response ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?person WHERE { diff --git a/docs/api/rels/1/placeClassifiedAsConcept.md b/docs/api/rels/1/placeClassifiedAsConcept.md index 719fe2a9..bf3dbd9c 100644 --- a/docs/api/rels/1/placeClassifiedAsConcept.md +++ b/docs/api/rels/1/placeClassifiedAsConcept.md @@ -21,7 +21,7 @@ From the record for the concept of Cities, the record for Amsterdam would be in ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?place WHERE { diff --git a/docs/api/rels/1/placeMemberOfSet.md b/docs/api/rels/1/placeMemberOfSet.md index 8adc2240..39351451 100644 --- a/docs/api/rels/1/placeMemberOfSet.md +++ b/docs/api/rels/1/placeMemberOfSet.md @@ -21,8 +21,8 @@ From the record for the set of places in which Van Gogh lived, the record for Ar ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?place WHERE { diff --git a/docs/api/rels/1/placePartOfPlace.md b/docs/api/rels/1/placePartOfPlace.md index 18b9f295..bfaefe7e 100644 --- a/docs/api/rels/1/placePartOfPlace.md +++ b/docs/api/rels/1/placePartOfPlace.md @@ -21,7 +21,7 @@ From the record for Île-de-France, the record for Paris would be in the respons ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?place WHERE { diff --git a/docs/api/rels/1/setClassifiedAsConcept.md b/docs/api/rels/1/setClassifiedAsConcept.md index 5edaf593..5e45ec6c 100644 --- a/docs/api/rels/1/setClassifiedAsConcept.md +++ b/docs/api/rels/1/setClassifiedAsConcept.md @@ -23,8 +23,8 @@ From the record for the concept of Auction Lots, the record for Lot 14 would be ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?set WHERE { diff --git a/docs/api/rels/1/setCreatedAtPlace.md b/docs/api/rels/1/setCreatedAtPlace.md index 8009ec8e..4b4ee991 100644 --- a/docs/api/rels/1/setCreatedAtPlace.md +++ b/docs/api/rels/1/setCreatedAtPlace.md @@ -21,8 +21,8 @@ From the record for New Haven, the record for the set representing the Archives ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?set WHERE { diff --git a/docs/api/rels/1/setCreatedByAgent.md b/docs/api/rels/1/setCreatedByAgent.md index e0209b77..7c70f5d3 100644 --- a/docs/api/rels/1/setCreatedByAgent.md +++ b/docs/api/rels/1/setCreatedByAgent.md @@ -22,8 +22,8 @@ From the record for O.C. Marsh, the record for his archive would be in the respo ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?set WHERE { diff --git a/docs/api/rels/1/setCreationCausedByActivity.md b/docs/api/rels/1/setCreationCausedByActivity.md index 74c80b67..45e83c0d 100644 --- a/docs/api/rels/1/setCreationCausedByActivity.md +++ b/docs/api/rels/1/setCreationCausedByActivity.md @@ -23,9 +23,9 @@ See the related [model documentation]() ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . -PREFIX sci: . +PREFIX crm: +PREFIX la: +PREFIX sci: SELECT DISTINCT ?object WHERE { diff --git a/docs/api/rels/1/setMemberOfSet.md b/docs/api/rels/1/setMemberOfSet.md index 445980c7..3d886ea3 100644 --- a/docs/api/rels/1/setMemberOfSet.md +++ b/docs/api/rels/1/setMemberOfSet.md @@ -21,7 +21,7 @@ From the record for the set for the Archives of O. C. Marsh, the record for Seri ### SPARQL ```sparql -PREFIX la: . +PREFIX la: SELECT DISTINCT ?set WHERE { diff --git a/docs/api/rels/1/temporalMemberOfSet.md b/docs/api/rels/1/temporalMemberOfSet.md index 7dea2bbb..3a90ea36 100644 --- a/docs/api/rels/1/temporalMemberOfSet.md +++ b/docs/api/rels/1/temporalMemberOfSet.md @@ -21,8 +21,8 @@ From the record for the set of Linked Art face to face meetings, the record for ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?temporal WHERE { diff --git a/docs/api/rels/1/workAboutActivity.md b/docs/api/rels/1/workAboutActivity.md index 1a598ade..d66273ae 100644 --- a/docs/api/rels/1/workAboutActivity.md +++ b/docs/api/rels/1/workAboutActivity.md @@ -21,7 +21,7 @@ From the record for the Bronze Age, the record for a work about the Bronze Age w ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutAgent.md b/docs/api/rels/1/workAboutAgent.md index 059e2af7..2c278d9e 100644 --- a/docs/api/rels/1/workAboutAgent.md +++ b/docs/api/rels/1/workAboutAgent.md @@ -23,7 +23,7 @@ From the record for Abraham Lincoln, the record for We are Lincoln Men : Abraham ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutConcept.md b/docs/api/rels/1/workAboutConcept.md index 37b489ab..0a0bbf0d 100644 --- a/docs/api/rels/1/workAboutConcept.md +++ b/docs/api/rels/1/workAboutConcept.md @@ -21,7 +21,7 @@ From the record for the concept of Democracy, the record for Diamond's work "In ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutObject.md b/docs/api/rels/1/workAboutObject.md index 455f1442..08502078 100644 --- a/docs/api/rels/1/workAboutObject.md +++ b/docs/api/rels/1/workAboutObject.md @@ -21,7 +21,7 @@ From the record for the Night Watch, the record for Bikker's "The Night Watch" w ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsActivity.md b/docs/api/rels/1/workAboutOrRepresentsActivity.md index d979a476..d03ad51d 100644 --- a/docs/api/rels/1/workAboutOrRepresentsActivity.md +++ b/docs/api/rels/1/workAboutOrRepresentsActivity.md @@ -21,7 +21,7 @@ From the record for the activity of the Battle of Bunker Hill, the records for t ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsAgent.md b/docs/api/rels/1/workAboutOrRepresentsAgent.md index fc018eee..e2f7194e 100644 --- a/docs/api/rels/1/workAboutOrRepresentsAgent.md +++ b/docs/api/rels/1/workAboutOrRepresentsAgent.md @@ -21,7 +21,7 @@ From the record for John Trumbull, the visual items and texts that depict him (s ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsConcept.md b/docs/api/rels/1/workAboutOrRepresentsConcept.md index 1673a5a4..bb72ec8a 100644 --- a/docs/api/rels/1/workAboutOrRepresentsConcept.md +++ b/docs/api/rels/1/workAboutOrRepresentsConcept.md @@ -21,7 +21,7 @@ From the record for the concept of Law and Order, the record for the work of the ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsObject.md b/docs/api/rels/1/workAboutOrRepresentsObject.md index 079a94bb..433492ea 100644 --- a/docs/api/rels/1/workAboutOrRepresentsObject.md +++ b/docs/api/rels/1/workAboutOrRepresentsObject.md @@ -22,7 +22,7 @@ See the related [model documentation](/model/object/aboutness/#subject) ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsPlace.md b/docs/api/rels/1/workAboutOrRepresentsPlace.md index 9d0a4fda..bf7450aa 100644 --- a/docs/api/rels/1/workAboutOrRepresentsPlace.md +++ b/docs/api/rels/1/workAboutOrRepresentsPlace.md @@ -22,7 +22,7 @@ From the record for Paris, the records for the image carried by a painting of No ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsSet.md b/docs/api/rels/1/workAboutOrRepresentsSet.md index a74e9481..246ba215 100644 --- a/docs/api/rels/1/workAboutOrRepresentsSet.md +++ b/docs/api/rels/1/workAboutOrRepresentsSet.md @@ -21,8 +21,8 @@ From the record for the set for the Archives of O. C. Marsh, the records for an ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutOrRepresentsWork.md b/docs/api/rels/1/workAboutOrRepresentsWork.md index 6ccabb47..5deb4fe5 100644 --- a/docs/api/rels/1/workAboutOrRepresentsWork.md +++ b/docs/api/rels/1/workAboutOrRepresentsWork.md @@ -21,8 +21,8 @@ See the related [model documentation](/model/object/aboutness/#subject) ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutPlace.md b/docs/api/rels/1/workAboutPlace.md index 3b938ac4..7b73ec00 100644 --- a/docs/api/rels/1/workAboutPlace.md +++ b/docs/api/rels/1/workAboutPlace.md @@ -21,7 +21,7 @@ From the record for Paris France, the record for Victor Hugo's work "Paris" woul ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutSet.md b/docs/api/rels/1/workAboutSet.md index 3b6d71e4..cb803c95 100644 --- a/docs/api/rels/1/workAboutSet.md +++ b/docs/api/rels/1/workAboutSet.md @@ -21,8 +21,8 @@ From the record for the set for the Archives of O. C. Marsh, a text of an articl ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workAboutWork.md b/docs/api/rels/1/workAboutWork.md index 5134a321..f836bd5b 100644 --- a/docs/api/rels/1/workAboutWork.md +++ b/docs/api/rels/1/workAboutWork.md @@ -21,7 +21,7 @@ From the record for The Lord of the Rings, the record for an article about Tolki ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workClassifiedAsConcept.md b/docs/api/rels/1/workClassifiedAsConcept.md index 58a0d2c8..c9eaf1a5 100644 --- a/docs/api/rels/1/workClassifiedAsConcept.md +++ b/docs/api/rels/1/workClassifiedAsConcept.md @@ -21,8 +21,8 @@ From the record for Impressionism, the record for the work of Van Gogh's "Irises ### SPARQL ```sparql -PREFIX crm: . -PREFIX la: . +PREFIX crm: +PREFIX la: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workCreatedAtPlace.md b/docs/api/rels/1/workCreatedAtPlace.md index c464643e..6b345587 100644 --- a/docs/api/rels/1/workCreatedAtPlace.md +++ b/docs/api/rels/1/workCreatedAtPlace.md @@ -21,7 +21,7 @@ From the record for Oxford UK, the Lord of the Rings and the Hobbit would be in ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { diff --git a/docs/api/rels/1/workCreatedByAgent.md b/docs/api/rels/1/workCreatedByAgent.md index 4baec5dd..cd272111 100644 --- a/docs/api/rels/1/workCreatedByAgent.md +++ b/docs/api/rels/1/workCreatedByAgent.md @@ -21,7 +21,7 @@ From the record for André Chastel, the record for The Vatican Frescoes of Miche ### SPARQL ```sparql -PREFIX crm: . +PREFIX crm: SELECT DISTINCT ?work WHERE { From 05fb15a716fefa58b8a60c852b479e0e80cac8e1 Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Thu, 2 Oct 2025 12:21:32 +0000 Subject: [PATCH 5/6] bug fixes --- docs/api/rels/1/groupFoundedByAgent.md | 2 +- docs/api/rels/1/objectProductionInfluencedByAgent.md | 2 +- docs/api/rels/1/objectProductionInfluencedByObject.md | 2 +- docs/api/rels/1/setCreatedByAgent.md | 2 +- docs/api/rels/1/workAboutAgent.md | 2 +- docs/api/rels/1/workAboutObject.md | 2 +- docs/api/rels/1/workAboutOrRepresentsAgent.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/api/rels/1/groupFoundedByAgent.md b/docs/api/rels/1/groupFoundedByAgent.md index d250c490..60809530 100644 --- a/docs/api/rels/1/groupFoundedByAgent.md +++ b/docs/api/rels/1/groupFoundedByAgent.md @@ -36,7 +36,7 @@ WHERE { $current crm:P14i_performed ?activity . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E74_Group . } diff --git a/docs/api/rels/1/objectProductionInfluencedByAgent.md b/docs/api/rels/1/objectProductionInfluencedByAgent.md index 41db43f4..3abf3441 100644 --- a/docs/api/rels/1/objectProductionInfluencedByAgent.md +++ b/docs/api/rels/1/objectProductionInfluencedByAgent.md @@ -32,7 +32,7 @@ WHERE { $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E74_Group . } diff --git a/docs/api/rels/1/objectProductionInfluencedByObject.md b/docs/api/rels/1/objectProductionInfluencedByObject.md index 775c6c0a..e73a5143 100644 --- a/docs/api/rels/1/objectProductionInfluencedByObject.md +++ b/docs/api/rels/1/objectProductionInfluencedByObject.md @@ -31,6 +31,6 @@ WHERE { } UNION { $current crm:P15i_influenced/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P108_has_produced ?object . } - $current a crm:E21_Human-Made_Object . + $current a crm:E22_Human-Made_Object . } ``` diff --git a/docs/api/rels/1/setCreatedByAgent.md b/docs/api/rels/1/setCreatedByAgent.md index 7c70f5d3..b0cc181f 100644 --- a/docs/api/rels/1/setCreatedByAgent.md +++ b/docs/api/rels/1/setCreatedByAgent.md @@ -38,7 +38,7 @@ WHERE { $current crm:P15i_influenced ?activity . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E76_Group . } diff --git a/docs/api/rels/1/workAboutAgent.md b/docs/api/rels/1/workAboutAgent.md index 2c278d9e..c97945eb 100644 --- a/docs/api/rels/1/workAboutAgent.md +++ b/docs/api/rels/1/workAboutAgent.md @@ -38,7 +38,7 @@ WHERE { ?work a crm:E36_Visual_Item . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E76_Group . } diff --git a/docs/api/rels/1/workAboutObject.md b/docs/api/rels/1/workAboutObject.md index 08502078..c9f418a5 100644 --- a/docs/api/rels/1/workAboutObject.md +++ b/docs/api/rels/1/workAboutObject.md @@ -35,6 +35,6 @@ WHERE { } UNION { ?work a crm:E36_Visual_Item . } - $current a crm:E21_Human-Made_Object . + $current a crm:E22_Human-Made_Object . } ``` diff --git a/docs/api/rels/1/workAboutOrRepresentsAgent.md b/docs/api/rels/1/workAboutOrRepresentsAgent.md index e2f7194e..9c04e7dd 100644 --- a/docs/api/rels/1/workAboutOrRepresentsAgent.md +++ b/docs/api/rels/1/workAboutOrRepresentsAgent.md @@ -36,7 +36,7 @@ WHERE { ?work a crm:E36_Visual_Item . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E76_Group . } From 7c593be6d23810a530dad689b6f7e1909209b10d Mon Sep 17 00:00:00 2001 From: Edward Anderson Date: Thu, 2 Oct 2025 12:21:45 +0000 Subject: [PATCH 6/6] add remaining queries --- docs/api/rels/1/workCreatedByAgent.md | 2 +- .../rels/1/workCreationCausedByActivity.md | 23 ++++++++++++-- .../rels/1/workCreationTechniqueConcept.md | 21 ++++++++++--- docs/api/rels/1/workLanguageLanguage.md | 15 ++++++++-- docs/api/rels/1/workMemberOfSet.md | 18 +++++++++-- docs/api/rels/1/workPartOfWork.md | 17 ++++++++--- docs/api/rels/1/workPublishedAtPlace.md | 30 ++++++++++++++----- docs/api/rels/1/workPublishedByAgent.md | 25 ++++++++++++++++ docs/api/rels/1/workRepresentsActivity.md | 28 ++++++++++++++--- docs/api/rels/1/workRepresentsAgent.md | 23 ++++++++++++++ docs/api/rels/1/workRepresentsConcept.md | 22 +++++++++++--- docs/api/rels/1/workRepresentsObject.md | 22 +++++++++++--- docs/api/rels/1/workRepresentsPlace.md | 25 +++++++++++----- docs/api/rels/1/workRepresentsSet.md | 23 +++++++++++--- docs/api/rels/1/workRepresentsWork.md | 25 ++++++++++++++-- 15 files changed, 270 insertions(+), 49 deletions(-) diff --git a/docs/api/rels/1/workCreatedByAgent.md b/docs/api/rels/1/workCreatedByAgent.md index cd272111..0cc59e83 100644 --- a/docs/api/rels/1/workCreatedByAgent.md +++ b/docs/api/rels/1/workCreatedByAgent.md @@ -36,7 +36,7 @@ WHERE { ?work a crm:E36_Visual_Item . } { - $current a crm:E22_Person . + $current a crm:E21_Person . } UNION { $current a crm:E76_Group . } diff --git a/docs/api/rels/1/workCreationCausedByActivity.md b/docs/api/rels/1/workCreationCausedByActivity.md index 9594fd43..16d43d35 100644 --- a/docs/api/rels/1/workCreationCausedByActivity.md +++ b/docs/api/rels/1/workCreationCausedByActivity.md @@ -21,7 +21,26 @@ From the record for a conference activity, the record for the proceedings of the ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P94i_was_created_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P14_carried_out_by $current . + } UNION { + $current crm:P7i_witnessed/(crm:P9i_forms_part_of|crm:P9_consists_of)*/crm:P14i_performed ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E21_Person . + } UNION { + $current a crm:E76_Group . + } +} ``` - diff --git a/docs/api/rels/1/workCreationTechniqueConcept.md b/docs/api/rels/1/workCreationTechniqueConcept.md index dd0863b6..0486a0c4 100644 --- a/docs/api/rels/1/workCreationTechniqueConcept.md +++ b/docs/api/rels/1/workCreationTechniqueConcept.md @@ -12,16 +12,29 @@ See the related [model documentation]() From the record for Sculpting, the record for the sculpture "Bather putting up her hair" would be in the response - ### Details * Class Given: Concept * Returns Class: Work * Relationship: creationTechnique - ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P94i_was_created_by/(crm:P9_consists_of|crm:P9i_forms_part_of)*/sci:O13i_is_triggered_by $current . + } UNION { + $current crm:P7i_witnessed/(crm:P9i_forms_part_of|crm:P9_consists_of)*/sci:O13_triggers ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E55_Type . +} ``` - diff --git a/docs/api/rels/1/workLanguageLanguage.md b/docs/api/rels/1/workLanguageLanguage.md index 02ac0016..93dc9ad4 100644 --- a/docs/api/rels/1/workLanguageLanguage.md +++ b/docs/api/rels/1/workLanguageLanguage.md @@ -21,7 +21,18 @@ From the record for English, the record for the Lord of the Rings would be in th ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P72_has_language $language . + } UNION { + $current crm:P72i_is_language_of ?work . + } + ?work a crm:E33_Linguistic_Object . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workMemberOfSet.md b/docs/api/rels/1/workMemberOfSet.md index ab7ca462..dc79181c 100644 --- a/docs/api/rels/1/workMemberOfSet.md +++ b/docs/api/rels/1/workMemberOfSet.md @@ -12,16 +12,28 @@ See the related [model documentation](/model/collection/#features) From the record for the set of works which describe the Night Watch, the record for Bikker's "The Night Watch" would be in the response - ### Details * Class Given: Set * Returns Class: Work * Relationship: memberOf - ### SPARQL -``` +```sparql +PREFIX crm: +PREFIX la: + +SELECT DISTINCT ?work +WHERE { + { + ?work la:member_of $current . + } UNION { + $current la:has_member ?work . + } + ?work a crm:E33_Linguistic_Object . + FILTER(isIRI(?work)) +} ``` +> Require metatype for "Type of Work"? diff --git a/docs/api/rels/1/workPartOfWork.md b/docs/api/rels/1/workPartOfWork.md index 941ba04a..44705c10 100644 --- a/docs/api/rels/1/workPartOfWork.md +++ b/docs/api/rels/1/workPartOfWork.md @@ -12,16 +12,25 @@ See the related [model documentation](/model/document/#structure) From the record for The Lord of the Rings, the record for The Fellowship of the Ring would be in the response - ### Details * Class Given: Work * Returns Class: Work * Relationship: partOf - ### SPARQL -``` ``` - +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + $current crm:P106i_forms_part_of ?work . + } UNION { + ?work crm:P106_is_composed_of ?work . + } + ?work a crm:E33_Linguistic_Object . + FILTER(isIRI(?work)) +} +``` diff --git a/docs/api/rels/1/workPublishedAtPlace.md b/docs/api/rels/1/workPublishedAtPlace.md index e545e1b1..28b52a45 100644 --- a/docs/api/rels/1/workPublishedAtPlace.md +++ b/docs/api/rels/1/workPublishedAtPlace.md @@ -12,19 +12,35 @@ See the related [model documentation](/model/document/#creation-and-publication) From the record for Los Angeles, the Getty Exhibition catalog for Pacific Standard Time would be in the response - ### Details * Class Given: Place * Returns Class: Work * Relationship: publishedAt - ### SPARQL + ``` -SELECT DISTINCT ?work WHERE { - BIND(<%current%> as ?where) - ?activity ^crm:P16i_was_used_for ?work ; crm:P2_has_type ; crm:P9_consists_of*/crm:P7_took_place_at ?where . - } +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P16i_was_used_for/(crm:P9_consists_of|crm:P9i_forms_part_of)* ?activity . + } UNION { + ?activity (crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P16_used_specific_object ?work . + } + { + ?activity crm:P2_has_type . + } UNION { + crm:P2i_is_type_of ?activity . + } + { + ?activity crm:P7_took_place_at $current . + } UNION { + $current crm:P7i_witnessed ?activity . + } + ?work a crm:E33_Linguistic_Object . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workPublishedByAgent.md b/docs/api/rels/1/workPublishedByAgent.md index d79c13c1..bd43768d 100644 --- a/docs/api/rels/1/workPublishedByAgent.md +++ b/docs/api/rels/1/workPublishedByAgent.md @@ -29,3 +29,28 @@ SELECT DISTINCT ?work WHERE { } ``` + +``` +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P16i_was_used_for/(crm:P9_consists_of|crm:P9i_forms_part_of)* ?activity . + } UNION { + ?activity (crm:P9_consists_of|crm:P9i_forms_part_of)*/crm:P16_used_specific_object ?work . + } + { + ?activity crm:P2_has_type . + } UNION { + crm:P2i_is_type_of ?activity . + } + { + ?activity crm:P14_carried_out_by $current . + } UNION { + $current crm:P14i_performed ?activity . + } + ?work a crm:E33_Linguistic_Object . + FILTER(isIRI(?work)) +} +``` diff --git a/docs/api/rels/1/workRepresentsActivity.md b/docs/api/rels/1/workRepresentsActivity.md index 9db4b3a8..81ab03cf 100644 --- a/docs/api/rels/1/workRepresentsActivity.md +++ b/docs/api/rels/1/workRepresentsActivity.md @@ -12,16 +12,36 @@ See the related [model documentation](/model/object/aboutness/#depiction) From the record for the activity of the Battle of Bunker Hill, the record for the image created by Trumbull of the painting of the same name would be in the response - ### Details * Class Given: Temporal * Returns Class: Work * Relationship: - ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + $current a crm:E4_Period . + } UNION { + $current a crm:E5_Event . + } UNION { + $current a crm:E7_Activity . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workRepresentsAgent.md b/docs/api/rels/1/workRepresentsAgent.md index 6272fd04..8fb612f3 100644 --- a/docs/api/rels/1/workRepresentsAgent.md +++ b/docs/api/rels/1/workRepresentsAgent.md @@ -28,3 +28,26 @@ SELECT DISTINCT ?work WHERE { } ``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + $current a crm:E21_Person . + } UNION { + $current a crm:E76_Group . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + FILTER(isIRI(?work)) +} +``` diff --git a/docs/api/rels/1/workRepresentsConcept.md b/docs/api/rels/1/workRepresentsConcept.md index cc7897f6..3e437101 100644 --- a/docs/api/rels/1/workRepresentsConcept.md +++ b/docs/api/rels/1/workRepresentsConcept.md @@ -12,16 +12,30 @@ See the related [model documentation](/model/object/aboutness/#depiction) From the record for the concept of Dogs, the record for the work of the Night Watch would be in the response (as the image depicts an unidentified dog) - ### Details * Class Given: Concept * Returns Class: Work * Relationship: represents - ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents|crm:P199_represents_instance_of_type $current . + } UNION { + $current crm:P138i_has_representation|crm:P199i_has_instance_represented_by ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E55_Type . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workRepresentsObject.md b/docs/api/rels/1/workRepresentsObject.md index d97492c5..706a0ebd 100644 --- a/docs/api/rels/1/workRepresentsObject.md +++ b/docs/api/rels/1/workRepresentsObject.md @@ -12,16 +12,30 @@ See the related [model documentation](/model/object/aboutness/#depiction) From the record for the Night Watch, the record for a photograph of the Night Watch would be in the response - ### Details * Class Given: HumanMadeObject * Returns Class: Work * Relationship: represents - ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a crm:E21_Human-Made_Object . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workRepresentsPlace.md b/docs/api/rels/1/workRepresentsPlace.md index f3a83273..ff73265f 100644 --- a/docs/api/rels/1/workRepresentsPlace.md +++ b/docs/api/rels/1/workRepresentsPlace.md @@ -12,19 +12,30 @@ See the related [model documentation](/model/object/aboutness/#depiction) From the record for Paris France, the record for Pissarro's "Boulevard Montmartre at Night" would be in the response - ### Details * Class Given: Place * Returns Class: Work * Relationship: represents - ### SPARQL -``` -PREFIX crm: SELECT DISTINCT ?work WHERE { - BIND(<%current%>as ?where) - ?work crm:P138_represents ?where . + +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . } + $current a crm:E53_Place . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workRepresentsSet.md b/docs/api/rels/1/workRepresentsSet.md index da255850..36bc3e71 100644 --- a/docs/api/rels/1/workRepresentsSet.md +++ b/docs/api/rels/1/workRepresentsSet.md @@ -12,16 +12,31 @@ See the related [model documentation](/model/object/aboutness/#depiction) From the record for the set for the Archives of O. C. Marsh, an image that depicts the archive would be in the response - ### Details * Class Given: Set * Returns Class: Work * Relationship: represents - ### SPARQL -``` +```sparql +PREFIX crm: +PREFIX la: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + $current a la:Set . + FILTER(isIRI(?work)) +} ``` - diff --git a/docs/api/rels/1/workRepresentsWork.md b/docs/api/rels/1/workRepresentsWork.md index f7e1a87d..590f57a5 100644 --- a/docs/api/rels/1/workRepresentsWork.md +++ b/docs/api/rels/1/workRepresentsWork.md @@ -19,9 +19,28 @@ See the related [model documentation](/model/object/aboutness/#depiction) * Returns Class: Work * Relationship: represents - ### SPARQL -``` +```sparql +PREFIX crm: + +SELECT DISTINCT ?work +WHERE { + { + ?work crm:P138_represents $current . + } UNION { + $current crm:P138i_has_representation ?work . + } + { + ?work a crm:E33_Linguistic_Object . + } UNION { + ?work a crm:E36_Visual_Item . + } + { + $current a crm:E33_Linguistic_Object . + } UNION { + $current a crm:E36_Visual_Item . + } + FILTER(isIRI(?work)) +} ``` -