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

Reordered stylesheets and addressed #281 #301

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

richardofsussex
Copy link

Put templates in tei2rdf.xsl and crm.xsl into order by element name and
CIDOC-CRM class/property respectively.

Addressed issue #281 (initial part).

If others are happy with this approach, I will look at extending the coverage, particularly of properties within entities.

Put templates in tei2rdf.xsl and crm.xsl into order by element name and
CIDOC-CRM class/property respectively.

Addressed issue TEIC#281 (initial part).
@peterstadler
Copy link
Member

Thanks for putting in so much effort!
But may I kindly ask that you try not to reorder (or reindent) code blocks because it makes it so hard to spot the relevant changes. I see that one of your issues is about reordering, so please don't mix it (in one commit) with other changes.

Second, on line 53 of rdf/crm.xsl you are skipping the further processing in mode rdf2. Could you elaborate a little bit on the rational (or am I missing something)?

@richardofsussex
Copy link
Author

richardofsussex commented Dec 8, 2017 via email

@peterstadler
Copy link
Member

peterstadler commented Jan 5, 2018

sorry for the delay …

Admittedly, I'm not so adept with the CIDOC CRM that I could judge the changes appropriately so I hope others will chime in who's CIDOC-foo is better. Just a few notes:

Within the Stylesheets repo we have some test files and their expected results (after processing with the Stylesheets) to prevent regressions. In this case, it's Test/test12.xml which is transformed by profiles/default/rdf/to.xsl. The expected result file is expected-results/test12.rdf. (You can run the whole tests by entering make test from the root directory of the repo but will probably need to install some dependencies.)

After testing your changes and comparing with the expected results I see that residences like

<P74_has_current_or_former_residence rdf:resource="http://www.example.com/place/copenhagen http://www.example.com/place/denmark"/>

are changed into

<P74_has_current_or_former_residence>
   <E53_Place rdf:about="http://www.example.com/place/copenhagen">
      <P2_has_type rdf:resource="http://www.tei-c.org/type/place/settlement"/>
      <P87_is_identified_by>
         <E48_Place_Name rdf:about="http://www.example.com/placename/copenhagen">
            <rdf:value>Copenhagen</rdf:value>
         </E48_Place_Name>
      </P87_is_identified_by>
   </E53_Place>
   <E53_Place rdf:about="http://www.example.com/place/denmark">
      <P2_has_type rdf:resource="http://www.tei-c.org/type/place/country"/>
      <P87_is_identified_by>
         <E48_Place_Name rdf:about="http://www.example.com/placename/denmark">
            <rdf:value>Denmark</rdf:value>
         </E48_Place_Name>
      </P87_is_identified_by>
   </E53_Place>
</P74_has_current_or_former_residence>

I don't know whether this is syntactically nor semantically valid? Help wanted here …

Second, the test file is missing an <org>, so I added the one from #281 and got it transformed to

<E74_Group xmlns="http://purl.org/NET/crm-owl#"
           rdf:about="http://clas-lgpn2.classics.ox.ac.uk/id//org/c06.a40b0b7b-ce3b-45eb-82f9-006bb7deb712">
   <P131_is_identified_by>
      <E82_Actor_Appellation rdf:about="http://clas-lgpn2.classics.ox.ac.uk/id//orgname/d4e449">
         <rdf:value>National Library of Greece</rdf:value>
      </E82_Actor_Appellation>
   </P131_is_identified_by>
   <P76_has_contact_point>
      <p>before E53</p>
      <E53_Place rdf:about="http://clas-lgpn2.classics.ox.ac.uk/id//place/c06.55309772-00d6-43e1-9744-daffc24bf1d8">
         <P87_is_identified_by>
            <E47_Place_Spatial_Coordinates rdf:about="http://clas-lgpn2.classics.ox.ac.uk/id//placecoords/c06.4b819b9f-32d3-4744-a9d3-4fc45bb6f2e9">
               <rdf:value>23.733249999999998 37.98116666666667</rdf:value>
            </E47_Place_Spatial_Coordinates>
         </P87_is_identified_by>
         <P87_is_identified_by>
            <E48_Place_Name rdf:about="http://clas-lgpn2.classics.ox.ac.uk/id//placename/c06.55309772-00d6-43e1-9744-daffc24bf1d8">
               <rdf:value>Athens Greece</rdf:value>
            </E48_Place_Name>
         </P87_is_identified_by>
      </E53_Place>
      <p>after E53</p>
   </P76_has_contact_point>
</E74_Group>

Here, you are turning the <place> into a <P76_has_contact_point> rather than a <P74_has_current_or_former_residence> as proposed by #281? Additionally, are these <p>before E53</p> and <p>after E53</p> really necessary?
Help wanted here, as well, for I do not know what the desired output should look like …

@peterstadler peterstadler added resp: helpWanted No-one on Council has the expertise required to deal with this issue. status: needsDiscussion Council has not yet been able to agree on how to proceed. labels Jan 5, 2018
@hcayless
Copy link
Member

Council has reviewed this. @scstanley7 and I don't think that P76_has_contact_point is a safe assumption for org/place, nor that it's range should be a place. Otherwise, this is probably ok.

@sabineseifert
Copy link
Contributor

North-American subgroup at VF2F on April 13:
Action on @ebeshero: reach out to Ontologies SIG and request their advice as this is ancient PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resp: helpWanted No-one on Council has the expertise required to deal with this issue. status: needsDiscussion Council has not yet been able to agree on how to proceed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants