diff --git a/object/development/06/ABox.ttl b/object/development/06/ABox.ttl index 733ea22..688a117 100644 --- a/object/development/06/ABox.ttl +++ b/object/development/06/ABox.ttl @@ -36,7 +36,7 @@ ex:32-work-title-02 a obj:Title ; ex:32-expression a obj:Expression ; obj:isAbout ex:ermafrodita ; - obj:embodies ex:32-manifestation . + obj:isEmbodiedIn ex:32-manifestation . ex:32-manifestation a obj:Manifestation ; obj:hasType obj:manuscript ; @@ -52,7 +52,7 @@ ex:tavole-di-animali-work a obj:Work ; obj:isRealizedIn ex:tavole-di-animali-expression . ex:tavole-di-animali-expression a obj:Expression ; - obj:embodies ex:tavole-di-animali-manifestation . + obj:isEmbodiedIn ex:tavole-di-animali-manifestation . ex:tavole-di-animali-manifestation a obj:Manifestation ; obj:hasType obj:print-volume ; diff --git a/object/development/06/TBox.ttl b/object/development/06/TBox.ttl index 3ccfe51..d6f368a 100644 --- a/object/development/06/TBox.ttl +++ b/object/development/06/TBox.ttl @@ -27,9 +27,9 @@ rdfs:label "is realized in"@en . -:embodies rdf:type owl:ObjectProperty ; +:isEmbodiedIn rdf:type owl:ObjectProperty ; rdfs:subPropertyOf owl:topObjectProperty ; - rdfs:label "embodies"@en . + rdfs:label "is embodied in"@en . :isEsemplifiedBy rdf:type owl:ObjectProperty ; diff --git a/object/development/06/formal-competency-questions-testing.ipynb b/object/development/06/formal-competency-questions-testing.ipynb index bb846ab..e409c8c 100644 --- a/object/development/06/formal-competency-questions-testing.ipynb +++ b/object/development/06/formal-competency-questions-testing.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 11, + "execution_count": 13, "id": "0adc596a", "metadata": {}, "outputs": [], @@ -14,7 +14,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 14, "id": "c7a6cfa8", "metadata": {}, "outputs": [], @@ -24,24 +24,24 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 15, "id": "a54b6be8", "metadata": {}, "outputs": [], "source": [ - "text1 = '''CQ_5.1\n", - "What are the titles of the work `L1-work`? What are their types?\n", + "text1 = '''CQ_6.1\n", + "What are the titles of the work? What are their types?\n", "'''\n", "\n", "query1 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", "SELECT ?title ?type ?content\n", "WHERE {\n", " ?creation a obj:CreationEvent ;\n", - " obj:createsWork ex:L1-work .\n", - " ex:L1-work obj:hasTitle ?title .\n", + " obj:createsWork ?work .\n", + " ?work obj:hasTitle ?title .\n", " ?title obj:hasType ?type ;\n", " obj:hasContent ?content .\n", "}\n", @@ -50,159 +50,219 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 16, "id": "9967b608", "metadata": {}, "outputs": [], "source": [ - "text2 = '''CQ_5.2\n", - "What are the subjects of the works that are not part of any parent work?\n", + "text2 = '''CQ_6.2\n", + "Which work was created and in which period?\n", "'''\n", "\n", "query2 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?work ?subject\n", + "SELECT ?work ?start_date ?end_date\n", "WHERE {\n", " ?creation a obj:CreationEvent ;\n", - " obj:createsWork ?work ;\n", - " obj:createsExpression ?expression .\n", - " ?work a obj:Work .\n", - " ?expression a obj:Expression ;\n", - " obj:isAbout ?subject .\n", - " FILTER NOT EXISTS {\n", - " ?parent obj:hasMember ?work .\n", - " }\n", + " obj:createsWork ?work ;\n", + " obj:hasTimeSpan ?time_span .\n", + " ?time_span obj:hasStartDate ?start_date ;\n", + " obj:hasEndDate ?end_date .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 17, "id": "fac05224", "metadata": {}, "outputs": [], "source": [ - "text3 = '''CQ_5.3\n", - "What are the manifestations of the works which are members of parent works that are marine charts?\n", + "text3 = '''CQ_6.3\n", + "Which works are part of other works? What are the types of the larger works?\n", "'''\n", "\n", "query3 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?manifestation\n", + "SELECT ?work ?larger_work ?type\n", "WHERE {\n", " ?creation a obj:CreationEvent ;\n", - " obj:createsWork ?work ;\n", - " obj:createsManifestation ?manifestation .\n", - " ?parent a obj:ParentWork ;\n", - " obj:hasMember ?work ;\n", - " obj:hasType obj:marine-chart .\n", + " obj:createsWork ?work .\n", + " ?larger_work a obj:Work ;\n", + " obj:hasMember ?work ;\n", + " obj:isRealizedIn ?larger_exp .\n", + " ?larger_exp obj:isEmbodiedIn ?larger_man .\n", + " ?larger_man obj:hasType ?type .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 18, "id": "27ef9822", "metadata": {}, "outputs": [], "source": [ - "text4 = '''CQ_5.4\n", - "What are the parent works of the works that have either "Europa" or "tapiro" as their subject?\n", + "text4 = '''CQ_6.4\n", + "What is the cultural object about?\n", "'''\n", "\n", "query4 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?parent ?work ?subject\n", + "SELECT ?expression ?subject\n", "WHERE {\n", - " ?creation a obj:CreationEvent ;\n", - " obj:createsWork ?work ;\n", - " obj:createsExpression ?expression .\n", - " ?parent a obj:ParentWork ;\n", - " obj:hasMember ?work .\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", " ?expression a obj:Expression ;\n", - " obj:isAbout ?subject .\n", - "FILTER (?subject IN (ex:sub-tapiro, ex:sub-europa))\n", + " obj:isAbout ?subject .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 19, "id": "66a7cfab", "metadata": {}, "outputs": [], "source": [ - "text5 = '''CQ_5.5\n", - "What are the manifestations that compose another manifestation?'''\n", + "text5 = '''CQ_6.5\n", + "What is the type of the cultural object?\n", + "'''\n", "\n", "query5 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?manifestation1 ?manifestation2\n", + "SELECT ?manifestation ?type\n", "WHERE {\n", - " ?manifestation1 obj:isComposedOf ?manifestation2 .\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", + " ?expression obj:isEmbodiedIn ?manifestation .\n", + " ?manifestation obj:hasType ?type .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 20, "id": "4d5bccb2", "metadata": {}, "outputs": [], "source": [ - "text6 = '''CQ_5.6\n", - "What are the manifestations that depict other expressions?'''\n", + "text6 = '''CQ_6.6\n", + "Which license statement is assigned to the cultural object?\n", + "'''\n", "\n", "query6 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?manifestation ?expression\n", + "SELECT ?manifestation ?license ?external_resource\n", "WHERE {\n", - " ?manifestation obj:depicts ?expression .\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", + " ?expression obj:isEmbodiedIn ?manifestation .\n", + " ?license obj:hasType obj:license-statement ;\n", + " obj:refersTo ?manifestation ;\n", + " obj:isDocumentedIn ?external_resource .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 21, "id": "ef8a42aa", "metadata": {}, "outputs": [], "source": [ - "text7 = '''CQ_5.7\n", - "What are the license statements referring to the manifestations?\n", + "text7 = '''CQ_6.7\n", + "What are the identifiers identifying the cultural object? What are their types?\n", "'''\n", "\n", "query7 = '''\n", - "PREFIX ex: \n", - "PREFIX obj: \n", + "PREFIX ex: \n", + "PREFIX obj: \n", "\n", - "SELECT ?manifestation ?license_link\n", + "SELECT ?identifier ?type ?content\n", "WHERE {\n", - " ?license obj:refersTo ?manifestation ;\n", - " obj:hasType obj:license ;\n", - " obj:isDocumentedIn ?license_link .\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", + " ?expression obj:isEmbodiedIn ?manifestation .\n", + " ?manifestation obj:isExemplifiedBy ?item .\n", + " ?item obj:hasIdentifier ?identifier .\n", + " ?identifier obj:hasType ?type ;\n", + " obj:hasContent ?content .\n", "}\n", "'''" ] }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 22, + "id": "ade90297", + "metadata": {}, + "outputs": [], + "source": [ + "text8 = '''CQ_6.8\n", + "What is the curation activity in which the object is involved? Who carried it out?\n", + "'''\n", + "\n", + "query8 = '''\n", + "PREFIX ex: \n", + "PREFIX obj: \n", + "\n", + "SELECT ?item ?activity ?actor\n", + "WHERE {\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", + " ?expression obj:isEmbodiedIn ?manifestation .\n", + " ?manifestation obj:isExemplifiedBy ?item .\n", + " ?activity obj:usesObject ?item ;\n", + " obj:isCarriedOutBy ?actor .\n", + "}\n", + "'''" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "id": "3b9e268e", + "metadata": {}, + "outputs": [], + "source": [ + "text9 = '''CQ_6.9\n", + "What is the description of the cultural object?\n", + "'''\n", + "\n", + "query9 = '''\n", + "PREFIX ex: \n", + "PREFIX obj: \n", + "\n", + "SELECT ?item ?description\n", + "WHERE {\n", + " ?creation a obj:CreationEvent ;\n", + " obj:createsExpression ?expression .\n", + " ?expression obj:isEmbodiedIn ?manifestation .\n", + " ?manifestation obj:isExemplifiedBy ?item .\n", + " ?item obj:hasDescription ?description .\n", + "}\n", + "'''" + ] + }, + { + "cell_type": "code", + "execution_count": 24, "id": "53980eff", "metadata": {}, "outputs": [ @@ -210,72 +270,87 @@ "name": "stdout", "output_type": "stream", "text": [ - "CQ_5.1\n", - "What are the titles of the work `L1-work`? What are their types?\n", + "CQ_6.1\n", + "What are the titles of the work? What are their types?\n", + "\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+--------------------------+\n", + "| title | type | content |\n", + "|-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+--------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-work-title-01 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/original-title | Essere umano ermafrodita |\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-work-title-02 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/exhibition-title | Essere umano ermafrodita |\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-work-title-02 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/exhibition-title | Human hermaphrodite |\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------+--------------------------+\n", + "CQ_6.2\n", + "Which work was created and in which period?\n", + "\n", + "+----------------------------------------------------------------------------+---------------------------+---------------------------+\n", + "| work | start_date | end_date |\n", + "|----------------------------------------------------------------------------+---------------------------+---------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-work | 1500-01-01T00:00:00+00:00 | 1599-12-31T23:59:59+00:00 |\n", + "+----------------------------------------------------------------------------+---------------------------+---------------------------+\n", + "CQ_6.3\n", + "Which works are part of other works? What are the types of the larger works?\n", + "\n", + "+----------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+\n", + "| work | larger_work | type |\n", + "|----------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-work | https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/tavole-di-animali-work | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/print-volume |\n", + "+----------------------------------------------------------------------------+-------------------------------------------------------------------------------------------+-----------------------------------------------------------------------------------+\n", + "CQ_6.4\n", + "What is the cultural object about?\n", + "\n", + "+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------+\n", + "| expression | subject |\n", + "|----------------------------------------------------------------------------------+--------------------------------------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-expression | https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/ermafrodita |\n", + "+----------------------------------------------------------------------------------+--------------------------------------------------------------------------------+\n", + "CQ_6.5\n", + "What is the type of the cultural object?\n", "\n", - "+-------------------------------------------------------------------------+---------------------------------------------------------------------+------------------------------------+\n", - "| title | type | content |\n", - "|-------------------------------------------------------------------------+---------------------------------------------------------------------+------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/L1-work-title-01 | https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/original-title | Amerigo Vespucci sveglia l'America |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/L1-work-title-02 | https://w3id.org/dharc/ontology/chad-ap/object/development/05/schema/museum-title | Amerigo Vespucci sveglia l'America |\n", - "+-------------------------------------------------------------------------+---------------------------------------------------------------------+------------------------------------+\n", - "CQ_5.2\n", - "What are the subjects of the works that are not part of any parent work?\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------+\n", + "| manifestation | type |\n", + "|-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-manifestation | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/manuscript |\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------+\n", + "CQ_6.6\n", + "Which license statement is assigned to the cultural object?\n", "\n", - "+---------------------------------------------------------------+-------------------------------------------------------------------------+\n", - "| work | subject |\n", - "|---------------------------------------------------------------+-------------------------------------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/1-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-europa |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/1-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-africa |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/1-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-asia |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/1-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-mar-mediterraneo |\n", - "+---------------------------------------------------------------+-------------------------------------------------------------------------+\n", - "CQ_5.3\n", - "What are the manifestations of the works which are members of parent works that are marine charts?\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------------------------+\n", + "| manifestation | license | external_resource |\n", + "|-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-manifestation | https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-manifestation-license | http://rightsstatements.org/vocab/InC/1.0/ |\n", + "+-------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------+--------------------------------------------+\n", + "CQ_6.7\n", + "What are the identifiers identifying the cultural object? What are their types?\n", "\n", - "+--------------------------------------------------------------+\n", - "| manifestation |\n", - "|--------------------------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/7-man |\n", - "+--------------------------------------------------------------+\n", - "CQ_5.4\n", - "What are the parent works of the works that have either "Europa" or "tapiro" as their subject?\n", + "+------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+\n", + "| identifier | type | content |\n", + "|------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item-identifier-01 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/collection-id | 32 |\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item-identifier-02 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/volume-number | 5 |\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item-identifier-03 | https://w3id.org/dharc/ontology/chad-ap/object/development/06/schema/shelf-mark | Ms. Aldrovandi, Tavole di animali, vol. 5, carta 86 |\n", + "+------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------+-----------------------------------------------------+\n", + "CQ_6.8\n", + "What is the curation activity in which the object is involved? Who carried it out?\n", "\n", - "+--------------------------------------------------------------------+----------------------------------------------------------------+---------------------------------------------------------------+\n", - "| parent | work | subject |\n", - "|--------------------------------------------------------------------+----------------------------------------------------------------+---------------------------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/nova-reperta | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/L1-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-tapiro |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/atlante-nautico | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/7-work | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/sub-europa |\n", - "+--------------------------------------------------------------------+----------------------------------------------------------------+---------------------------------------------------------------+\n", - "CQ_5.5\n", - "What are the manifestations that compose another manifestation?\n", - "+----------------------------------------------------------------+------------------------------------------------------------------+\n", - "| manifestation1 | manifestation2 |\n", - "|----------------------------------------------------------------+------------------------------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-man | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-1-man |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-man | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-2-man |\n", - "+----------------------------------------------------------------+------------------------------------------------------------------+\n", - "CQ_5.6\n", - "What are the manifestations that depict other expressions?\n", - "+------------------------------------------------------------------+----------------------------------------------------------------+\n", - "| manifestation | expression |\n", - "|------------------------------------------------------------------+----------------------------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-3-man | https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-man |\n", - "+------------------------------------------------------------------+----------------------------------------------------------------+\n", - "CQ_5.7\n", - "What are the license statements referring to the manifestations?\n", + "+----------------------------------------------------------------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------------------+\n", + "| item | activity | actor |\n", + "|----------------------------------------------------------------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item | https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item-curation | https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/bub |\n", + "+----------------------------------------------------------------------------+-------------------------------------------------------------------------------------+------------------------------------------------------------------------+\n", + "CQ_6.9\n", + "What is the description of the cultural object?\n", "\n", - "+------------------------------------------------------------------+--------------------------------------------+\n", - "| manifestation | license_link |\n", - "|------------------------------------------------------------------+--------------------------------------------|\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/L1-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/1-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/7-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-1-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-2-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "| https://w3id.org/dharc/ontology/chad-ap/object/development/05/data/PTa-3-man | http://rightsstatements.org/vocab/InC/1.0/ |\n", - "+------------------------------------------------------------------+--------------------------------------------+\n" + "+----------------------------------------------------------------------------+------------------------------------------------------------------+\n", + "| item | description |\n", + "|----------------------------------------------------------------------------+------------------------------------------------------------------|\n", + "| https://w3id.org/dharc/ontology/chad-ap/object/development/06/data/32-item | Essere umano ermafrodita |\n", + "| | Human hermaphrodite (Monstrum humanum hermaphroditicum) |\n", + "| | sec. XVI |\n", + "| | 16th century |\n", + "| | BUB, |\n", + "| | Ms. Aldrovandi, Tavole di animali, vol. 5, carta 86 |\n", + "+----------------------------------------------------------------------------+------------------------------------------------------------------+\n" ] } ], @@ -286,7 +361,10 @@ " (text4, query4),\n", " (text5, query5),\n", " (text6, query6),\n", - " (text7, query7)]\n", + " (text7, query7),\n", + " (text8, query8),\n", + " (text9, query9)\n", + " ]\n", "\n", "g = rdflib.ConjunctiveGraph()\n", "g.parse(filename, format=\"turtle\", encoding=\"utf-8\")\n", diff --git a/object/development/06/formal-competency-questions.md b/object/development/06/formal-competency-questions.md index 6cac24e..9e86458 100644 --- a/object/development/06/formal-competency-questions.md +++ b/object/development/06/formal-competency-questions.md @@ -1,118 +1,156 @@ # Formal Competency Questions -## CQ_5.1 -What are the titles of the work `L1-work`? What are their types? +## CQ_6.1 +What are the titles of the work? What are their types? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: SELECT ?title ?type ?content WHERE { ?creation a obj:CreationEvent ; - obj:createsWork ex:L1-work . - ex:L1-work obj:hasTitle ?title . + obj:createsWork ?work . + ?work obj:hasTitle ?title . ?title obj:hasType ?type ; obj:hasContent ?content . } ``` -## CQ_5.2 -What are the subjects of the works that are not part of any parent work? +## CQ_6.2 +Which work was created and in which period? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?work ?subject +SELECT ?work ?start_date ?end_date WHERE { ?creation a obj:CreationEvent ; - obj:createsWork ?work ; - obj:createsExpression ?expression . - ?work a obj:Work . - ?expression a obj:Expression ; - obj:isAbout ?subject . - FILTER NOT EXISTS { - ?parent obj:hasMember ?work . - } + obj:createsWork ?work ; + obj:hasTimeSpan ?time_span . + ?time_span obj:hasStartDate ?start_date ; + obj:hasEndDate ?end_date . } ``` -## CQ_5.3 -What are the manifestations of the works which are members of parent works that are marine charts? +## CQ_6.3 +Which works are part of other works? What are the types of the larger works? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?manifestation +SELECT ?work ?larger_work ?type WHERE { ?creation a obj:CreationEvent ; - obj:createsWork ?work ; - obj:createsManifestation ?manifestation . - ?parent a obj:ParentWork ; - obj:hasMember ?work ; - obj:hasType obj:marine-chart . + obj:createsWork ?work . + ?larger_work a obj:Work ; + obj:hasMember ?work ; + obj:isRealizedIn ?larger_exp . + ?larger_exp obj:isEmbodiedIn ?larger_man . + ?larger_man obj:hasType ?type . } ``` -## CQ_5.4 -What are the parent works of the works that have either "Europa" or "tapiro" as their subject? +## CQ_6.4 +What is the cultural object about? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?parent ?work ?subject +SELECT ?expression ?subject WHERE { - ?creation a obj:CreationEvent ; - obj:createsWork ?work ; - obj:createsExpression ?expression . - ?parent a obj:ParentWork ; - obj:hasMember ?work . + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . ?expression a obj:Expression ; - obj:isAbout ?subject . - - FILTER(?subject == ex:sub-tapiro || - ?subject == ex:sub-europa) + obj:isAbout ?subject . } ``` -## CQ_5.5 -What are the manifestations that compose another manifestation? +## CQ_6.5 +What is the type of the cultural object? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?manifestation1 ?manifestation2 +SELECT ?manifestation ?type WHERE { - ?manifestation1 obj:isComposedOf ?manifestation2 . + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . + ?expression obj:isEmbodiedIn ?manifestation . + ?manifestation obj:hasType ?type . } ``` -## CQ_5.6 -What are the manifestations that depict other expressions? +## CQ_6.6 +Which license statement is assigned to the cultural object? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?manifestation ?expression +SELECT ?manifestation ?license ?external_resource WHERE { - ?manifestation obj:depicts ?expression . + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . + ?expression obj:isEmbodiedIn ?manifestation . + ?license obj:type obj:license-statement ; + obj:refersTo ?manifestation ; + obj:isDocumentedIn ?external_resource . } ``` -## CQ_5.7 -What are the license statements referring to the manifestations? +## CQ_6.7 +What are the identifiers identifying the cultural object? What are their types? ```SPARQL -PREFIX ex: -PREFIX obj: +PREFIX ex: +PREFIX obj: -SELECT ?manifestation ?license_link +SELECT ?identifier ?type ?content WHERE { - ?license obj:refersTo ?manifestation ; - obj:hasType obj:license ; - obj:isDocumentedIn ?license_link . + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . + ?expression obj:isEmbodiedIn ?manifestation . + ?manifestation obj:isExemplifiedBy ?item . + ?item obj:hasIdentifier ?identifier . + ?identifier obj:hasType ?type ; + obj:hasContent ?content . +} +``` + +## CQ_6.8 +What is the curation activity in which the object is involved? Who carried it out? + +```SPARQL +PREFIX ex: +PREFIX obj: + +SELECT ?item ?activity ?actor +WHERE { + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . + ?expression obj:isEmbodiedIn ?manifestation . + ?manifestation obj:isExemplifiedBy ?item . + ?activity obj:usesObject ?item ; + obj:isCarriedOutBy ?actor . +} +``` + +## CQ_6.9 +What is the description of the cultural object? + +```SPARQL +PREFIX ex: +PREFIX obj: + +SELECT ?item ?description +WHERE { + ?creation a obj:CreationEvent ; + obj:createsExpression ?expression . + ?expression obj:isEmbodiedIn ?manifestation . + ?manifestation obj:isExemplifiedBy ?item . + ?item obj:hasDescription ?description . } ``` \ No newline at end of file diff --git a/object/development/06/glossary.md b/object/development/06/glossary.md index 756ef7e..3c4fd9b 100644 --- a/object/development/06/glossary.md +++ b/object/development/06/glossary.md @@ -17,7 +17,7 @@ | `creates work` | This property links a creation event with a work. | | `creates expression` | This property links a creation event with a exppression. | | `is realized in` | This property links a work with an expression. | -| `embodies` | This property links an expression with a manifestation. | +| `is embodied in` | This property links an expression with a manifestation. | | `is exemplified by` | This property links a manifestation with an item. | | `has member` | This property links a work with another work. | | `has title` | This property links an entity with a title. | diff --git a/object/development/06/informal-competency-questions.md b/object/development/06/informal-competency-questions.md index 32e7ce0..1174bce 100644 --- a/object/development/06/informal-competency-questions.md +++ b/object/development/06/informal-competency-questions.md @@ -1,7 +1,7 @@ # Informal Competency Questions ## Question 1 ### Identifier -CQ_5.1 +CQ_6.1 ### Question What are the titles of the work? What are their types? @@ -21,7 +21,7 @@ Example 1 ## Question 2 ### Identifier -CQ_5.2 +CQ_6.2 ### Question Which work was created and in which period? @@ -39,13 +39,13 @@ Example 1 ## Question 3 ### Identifier -CQ_5.3 +CQ_6.3 ### Question Which works are part of other works? What are the types of the larger works? ### Exprected outcome -List of: `work`, `larger_work` +List of: `work`, `larger_work`, `type` ### Result * `32-work`, `tavole-di-animali-work`, `print-volume` @@ -57,7 +57,7 @@ Example 1 ## Question 4 ### Identifier -CQ_5.4 +CQ_6.4 ### Question What is the cultural object about? @@ -75,7 +75,7 @@ Example 1 ## Question 5 ### Identifier -CQ_5.5 +CQ_6.5 ### Question What is the type of the cultural object? @@ -93,7 +93,7 @@ Example 1 ## Question 6 ### Identifier -CQ_5.6 +CQ_6.6 ### Question Which license statement is assigned to the cultural object? @@ -111,7 +111,7 @@ Example 1 ## Question 7 ### Identifier -CQ_5.7 +CQ_6.7 ### Question What are the identifiers identifying the cultural object? What are their types? @@ -131,7 +131,7 @@ Example 1 ## Question 8 ### Identifier -CQ_5.8 +CQ_6.8 ### Question What is the curation activity in which the object is involved? Who carried it out? @@ -147,9 +147,9 @@ Example 1 *** -## Question 8 +## Question 9 ### Identifier -CQ_5.9 +CQ_6.9 ### Question What is the description of the cultural object? diff --git a/object/development/06/modelet.graphml b/object/development/06/modelet.graphml index fbc6ded..c0f2d07 100644 --- a/object/development/06/modelet.graphml +++ b/object/development/06/modelet.graphml @@ -212,7 +212,7 @@ - embodies + is embodied in diff --git a/object/development/06/motivating-scenario.md b/object/development/06/motivating-scenario.md index fdde9de..8f8fff0 100644 --- a/object/development/06/motivating-scenario.md +++ b/object/development/06/motivating-scenario.md @@ -7,7 +7,7 @@ A `cultural resource` can be considered in terms of its essence (`work`), its co The work has a number of `titles`, each with a `type` (e.g. original title, exhibition title, etc.) and a content. The work itself can have a type as well. Moreover, it can be composed of other works. -The expression is created by a `creation event` along with the work. An expression embodies one or more manifestations and can be about some `concepts`. +The expression is created by a `creation event` along with the work. An expression is embodied in one or more manifestations and can be about some `concepts`. The expression creation event is carried out in a `time span` that can be expressed through either a fuzzy temporal label or a start and an end date. The manifestation has a type and is referred to by a `licensing statement` documented in an external `document`. Finally, it is exemplified by a item. @@ -20,7 +20,7 @@ The creation event `32-expression-creation` created the work `32-work` and the e `32-work` has two titles: `32-work-title-01` with type `original-title` ("Essere umano ermafrodita"), and `32-work-title-02` with type `exhibition-title` ("Essere umano ermafrodita" and "Human hermaphrodite"). It is member of another work `tavole-di-animali-work`, whose manifestation has `print-volume` as its type. It is realised in `32-expression`. -`32-expression` is about the concept `ermafrodita`. It embodies the manifestation `L1-manifestation`. +`32-expression` is about the concept `ermafrodita`. It is embodied in the manifestation `L1-manifestation`. `32-manifestation` has `manuscript` as its type. It is referred to by a license statement `32-manifestation-license` documented in the external document "http://rightsstatements.org/vocab/InC/1.0/". It is exemplified by `32-item`. diff --git a/object/diagrams/06/modelet.graphml b/object/diagrams/06/modelet.graphml index e637c54..923648c 100644 --- a/object/diagrams/06/modelet.graphml +++ b/object/diagrams/06/modelet.graphml @@ -212,7 +212,7 @@ - lrmoo:R4_embodies + lrmoo:R4i_is_embodied_in