Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statement instances #14

Open
dlschwartz opened this issue Sep 28, 2022 · 9 comments
Open

Statement instances #14

dlschwartz opened this issue Sep 28, 2022 · 9 comments

Comments

@dlschwartz
Copy link
Collaborator

@wsalesky each direct property will require its own statement instance. These need to be unique within the triple store but don't need to be persistent (in the case that we need to edit the TEI and re-run the serialization).

A good way to keep it unique and to keep all direct properties associated with their factoid of origin will be to use the factoid URI as the basis of the statement instance. Something like this should work.

https://spear-prosop.org/801-2 + [a distinctive character?] + a randomly generated alphanumeric string of appropriate length:
https://spear-prosop.org/801-2?a4cp

The distinctive character should be something that won't appear elsewhere that would allow us to isolate substring-before to get the factoid URI.

@dlschwartz
Copy link
Collaborator Author

Also, since property qualifiers attach to statement instances these will need to be duplicated on each statement instance. Property qualifiers are the spq on this sheet.

@wsalesky
Copy link
Collaborator

wsalesky commented Oct 3, 2022

Can you give me an example triple?

@dlschwartz
Copy link
Collaborator Author

@wsalesky this example should cover the different aspects of this issue. I'm not sure about the "?" in the statement instance. Feel free to choose whatever you think will work as a separator between the number portion of the URI and the randomly generated string.

For events, each person, place, and keyword will be a direct property with a statement instance/qualifiers like this. For relationships, each direct property will require the same.

swd:event8559-387 swdt:event-place swd:place/2785 ;
swd:event8559-387 sp:event-place swds:8559-387?gw34 ;
swds:8559-387?gw34 sps:event-place swd:place/2785 ;
swds:8559-387?gw34 spq:not-before "0498-10" [I'm not entirely clear on date formats here.]
swds:8559-387?gw34 spq:not-after "0499-09"

swd:event8559-387 swdt:event-keyword swd:keyword/natural-disasters ;
swd:event8559-387 sp:event-keyword swds:8559-387?3fg9 ;
swds:8559-387?3fg9 sps:event-keyword swd:keyword/natural-disasters ;
swds:8559-387?3fg9 spq:not-before "0498-10"
swds:8559-387?3fg9 spq:not-after "0499-09"

@wsalesky
Copy link
Collaborator

wsalesky commented Oct 3, 2022

@dlschwartz So the date would get repeated for each person, place, keyword?

@dlschwartz
Copy link
Collaborator Author

@wsalesky no, your right, they shouldn't! Sorry. The dates should be direct properties of the event. If relationships are dated they would need to be serialized as qualifiers.

Event:
swd:event8559-387 swdt:event-place swd:place/2785 ;
swd:event8559-387 sp:event-place swds:8559-387?gw34 ;
swds:8559-387?gw34 sps:event-place swd:place/2785 ;

swd:event8559-387 swdt:event-keyword swd:keyword/natural-disasters ;
swd:event8559-387 sp:event-keyword swds:8559-387?3fg9 ;
swds:8559-387?3fg9 sps:event-keyword swd:keyword/natural-disasters ;

swd:event8559-387 swdt:not-before "0498-10" ;
swd:event8559-387 sp:not-before swds:8559-387?mx9i ;
swds:8559-387?mx9i sps:not-before "0498-10" ;

swd:event8559-387 swdt:not-after "0499-09" ;
swd:event8559-387 sp:not-after swds:8559-387?z34s ;
swds:8559-387?z34s sps:not-after "0499-09" ;

Relationship:
swd:person/51 swdt:sender-of-letter-to swd:person/2591 ;
swd:person/51 sp:sender-of-letter-to swds:3008-1?eo2r ;
swds:3008-1?eo2r sps:sender-of-letter-to swd:person/2591 ;
swds:3008-1?eo2r spq:not-before "0490" ;
swds:3008-1?eo2r spq:not-after "0512" ;

@wsalesky
Copy link
Collaborator

wsalesky commented Oct 3, 2022

How does this look?

@prefix swd: <http://syriaca.org/>.
@prefix swds: <http://spear-prosop/entity/statement/>.
@prefix swdt: <http://syriaca.org/prop/direct/>.
@prefix sp: <http://syriaca.org/prop/>.
@prefix sps: <http://syriaca.org/prop/statement/>.
@prefix spr: <http://syriaca.org/prop/reference/>.
@prefix spq: <http://syriaca.org/prop/qualifier/>.
@prefix swdref: <http://spear-prosop/reference/>.
@prefix schema: <http://schema.org/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix prov: <http://www.w3.org/ns/prov#>. 

<https://spear-prosop.org/8559-387> schema:description "In 498/9 A. Gr. 810 the hotspring of Abarne stopped for three days."@en ;
<https://spear-prosop.org/8559-387> rdf:XMLLiteral  "<desc xmlns="http://www.tei-c.org/ns/1.0"> In <choice>
                                <reg>
                           <date notBefore="0498-10" notAfter="0499-09" calendar="Gregorian">498/9</date>
                        </reg>
                                <orig>
                           <date when-custom="0810" datingMethod="Seleucid">A. Gr.
                                        810</date>
                        </orig>
                        </choice> 
                     <placeName ref="http://syriaca.org/place/2785">the hotspring of Abarne</placeName>  stopped for
                            three days. </desc>" ;
swd:event8559-387 schema:description "In 498/9 A. Gr. 810 the hotspring of Abarne stopped for three days."@en ;
swdref:8559-387 spr:part-of-series <http://syriaca.org/spear> ;
swdref:8559-387 spr:part-of-series <https://spear-prosop.org/8559> ;
swds:8559-387 spr:wasDerivedFrom <https://spear-prosop.org/8559-387> ;
swdref:8559-387 spr:creator <http://syriaca.org/documentation/editors.xml#dschwartz> ;
swdref:8559-387 spr:reference-bibl <http://syriaca.org/bibl/633> ;
swdref:8559-387 spr:reference-bibl <urn:cts:syriacLit:nhsl8559.syriacCorpus57:76> ;
swdref:8559-387 spr:reference-bibl <http://syriaca.org/bibl/657> ;
swds:8559-387 spq:certainty <incerta> ;
swd:event8559-387 swdt:event-place swd:place/2785 ;
swd:event8559-387 sp:event-place swds:8559-387?N1.2.1.1.8.2.5.4.1 ;
swds:8559-387?N1.2.1.1.8.2.5.4.1 sps:event-place swd:place/2785 ;
swd:event8559-387 swdt:event-keyword swd:keyword/natural-disasters ;
swd:event8559-387 sp:event-keyword swds:8559-387?keyword/natural-disastersN1.2.1.1.8.2 ;
swds:8559-387?keyword/natural-disastersN1.2.1.1.8.2 sps:event-keyword swd:keyword/natural-disasters ;
swds:8559-387?N1.2.1.1 spq:not-before "0498-10"^^xsd:gYearMonth ;
swds:8559-387?N1.2.1.1 spq:not-after "0499-09"^^xsd:gYearMonth ;

@dlschwartz
Copy link
Collaborator Author

@wsalesky I don't think we need the "keyword/natural-disasters" as part of the statement instance. Also, the event dates need to be direct properties.

swd:event8559-387 swdt:event-place swd:place/2785 ;
swd:event8559-387 sp:event-place swds:8559-387?N1.2.1.1.8.2.5.4.1 ;
swds:8559-387?N1.2.1.1.8.2.5.4.1 sps:event-place swd:place/2785 ;

swd:event8559-387 swdt:event-keyword swd:keyword/natural-disasters ;
swd:event8559-387 sp:event-keyword swds:8559-387?N1.2.1.1.8.2 ;
swds:8559-387?N1.2.1.1.8.2 sps:event-keyword swd:keyword/natural-disasters ;

swd:event8559-387 swdt:not-before "0498-10"^^xsd:gYearMonth ;
swd:event8559-387 sp:not-before swds:8559-387?N1.2.1.1.8
swds:8559-387?N1.2.1.1.8 sps:not-before "0498-10"^^xsd:gYearMonth ;

swd:event8559-387 swdt:not-after "0499-09"^^xsd:gYearMonth ;
swd:event8559-387 sp:not-after swds:8559-387?N1.2.1.1 ;
swds:8559-387?N1.2.1.1 sps:not-after "0499-09"^^xsd:gYearMonth ;

@wsalesky
Copy link
Collaborator

wsalesky commented Oct 4, 2022

How does this look:

@prefix swd: <http://syriaca.org/>.
@prefix swds: <http://spear-prosop/entity/statement/>.
@prefix swdt: <http://syriaca.org/prop/direct/>.
@prefix sp: <http://syriaca.org/prop/>.
@prefix sps: <http://syriaca.org/prop/statement/>.
@prefix spr: <http://syriaca.org/prop/reference/>.
@prefix spq: <http://syriaca.org/prop/qualifier/>.
@prefix swdref: <http://spear-prosop/reference/>.
@prefix schema: <http://schema.org/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix prov: <http://www.w3.org/ns/prov#>. 

<https://spear-prosop.org/8559-387> schema:description "In 498/9 A. Gr. 810 the hotspring of Abarne stopped for three days."@en ;
<https://spear-prosop.org/8559-387> rdf:XMLLiteral  "<desc xmlns="http://www.tei-c.org/ns/1.0"> In <choice>
                                <reg>
                           <date notBefore="0498-10" notAfter="0499-09" calendar="Gregorian">498/9</date>
                        </reg>
                                <orig>
                           <date when-custom="0810" datingMethod="Seleucid">A. Gr.
                                        810</date>
                        </orig>
                        </choice> 
                     <placeName ref="http://syriaca.org/place/2785">the hotspring of Abarne</placeName>  stopped for
                            three days. </desc>" ;
swd:event8559-387 schema:description "In 498/9 A. Gr. 810 the hotspring of Abarne stopped for three days."@en ;
swdref:8559-387 spr:part-of-series <http://syriaca.org/spear> ;
swdref:8559-387 spr:part-of-series <https://spear-prosop.org/8559> ;
swds:8559-387 spr:wasDerivedFrom <https://spear-prosop.org/8559-387> ;
swdref:8559-387 spr:creator <http://syriaca.org/documentation/editors.xml#dschwartz> ;
swdref:8559-387 spr:reference-bibl <http://syriaca.org/bibl/633> ;
swdref:8559-387 spr:reference-bibl <urn:cts:syriacLit:nhsl8559.syriacCorpus57:76> ;
swdref:8559-387 spr:reference-bibl <http://syriaca.org/bibl/657> ;
swds:8559-387 spq:certainty <incerta> ;
swd:event8559-387 swdt:event-place swd:place/2785 ;
swd:event8559-387 sp:event-place swds:8559-387?N121182541 ;
swds:8559-387?N121182541 sps:event-place swd:place/2785 ;
swd:event8559-387 swdt:event-keyword swd:keyword/natural-disasters ;
swd:event8559-387 sp:event-keyword swds:8559-387?1N121182 ;
swds:8559-387?1N121182 sps:event-keyword swd:keyword/natural-disasters ;
swd:8559-387 spq:not-before "0498-10"^^xsd:gYearMonth ;
swd:8559-387 spq:not-before swds:8559-387?N1211 ;
swds:8559-387?N1211 spq:not-before "0498-10"^^xsd:gYearMonth ;
swd:8559-387 spq:not-after "0499-09"^^xsd:gYearMonth ;
swd:8559-387 spq:not-after swds:8559-387?N1211 ;
swds:8559-387?N1211 spq:not-after "0499-09"^^xsd:gYearMonth ;

@dlschwartz
Copy link
Collaborator Author

@wsalesky the statement instances look good! But I'm afraid we've still need to change the event dates from property qualifiers to direct properties. We need:

swd:event8559-387 swdt:not-before "0498-10"^^xsd:gYearMonth ;
swd:event8559-387 sp:not-before swds:8559-387?XXXXXXX ;
swds:8559-387?XXXXXXX sps:not-before "0498-10"^^xsd:gYearMonth ;

swd:event8559-387 swdt:not-after "0499-09"^^xsd:gYearMonth ;
swd:event8559-387 sp:not-after swds:8559-387?XXXXXXX ;
swds:8559-387?XXXXXXX sps:not-after "0499-09"^^xsd:gYearMonth ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants