CenterForDigitalHumanities / dunbar-poems

The complete works of Dunbar linked with relevant poems and performances.
0 stars 0 forks source link

write script for reifying poems #1

Closed cubap closed 3 years ago

cubap commented 3 years ago

JS to create poem entities

{ name, type, forCollection, xPath }
cubap commented 3 years ago

PRIMITIVES = name @type

Annotations = forCollection selector (XPath) target

cubap commented 3 years ago

COLLECTION = "DLA Poems Collection"

cubap commented 3 years ago

The DLL used http://dcevents.dublincore.org/public/special/dc2013/APaltOO-GordonDunsire.pdf FRBR, which also has dcterms and schema, but is probably the "best" representation of our poems.

cubap commented 3 years ago

Here's my quick-add form

    <form id="poemForm" deer-type="Work" deer-context="http://purl.org/vocab/frbr/core#" class="row">
        <input type="text" deer-key="name" deer-context="http://schema.org" placeholder="Display Label" class="col">
        <input type="hidden" deer-key="targetCollection" deer-context="http://schema.org" value="DLA Poems Collection">
        <input type="hidden" deer-key="additionalType" deer-context="http://schema.org" value="http://purl.org/dc/dcmitype/Text">
        <input type="submit" value="Add Poem to Collection" class="col">
    </form>
cubap commented 3 years ago

https://www.w3.org/TR/Content-in-RDF10/#ContentAsXMLClass

cubap commented 3 years ago

These Hypothes.is annotations are not Web Annotations at all! What's happened here? https://hypothes.is/api/annotations/Sxr-7FTWEeaASnu3YW4j0A

cubap commented 3 years ago

relevant: https://github.com/FrankensteinVariorum/fv-data/issues/11