sapa / performing-arts-ch-templates

1 stars 3 forks source link

premis:File must be directly adress through URI #303

Closed b2d3c closed 1 year ago

b2d3c commented 1 year ago

Like : #173 but for File /0/

Ex:

fkraeutli commented 1 year ago

In which form and field(s) are files assigned @b2d3c ?

b2d3c commented 1 year ago

premis:File are created through Form:Virtual Instantiation

image

The data model of premis:File is :

But @fkraeutli : uri /0/ must not have a layout. They need only to be open on the by default layout directly through the URI.

fkraeutli commented 1 year ago

We probably need to add an extra fields to add files that already exist. Otherwise we risk adding data twice, i.e. when a file is created within an instantiation form, added to another, and edited there. Because the file lives in the named graph of the instantiation it was originally created, the file would then exist twice.

I will try to add a second field for adding existing files, with a link to the instantiation where the file was originally created and where it can be edited.

fkraeutli commented 1 year ago

I implemented a solution and deployed it to Dev for @b2d3c to check

b2d3c commented 1 year ago

Thanks @fkraeutli . I don't have imagine it's will be so complex. Perhaps we have to stop here this developpement and wait to talk about on our next meeting.

My question :

fkraeutli commented 1 year ago

Thanks @fkraeutli . I don't have imagine it's will be so complex. Perhaps we have to stop here this developpement and wait to talk about on our next meeting.

My question :

  • It's rico:RecordPart embeded also in rico:Record (because they are create through the Form:Record)?

yes

example query to verify:

PREFIX rico: <https://www.ica.org/standards/RiC/ontology#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT ?recordPart ?parent ?parentType WHERE {
  GRAPH ?g {
    ?recordPart a rico:RecordPart
  }
  BIND(URI(STRBEFORE(STR(?g), "/container")) as ?parent)
  ?parent a ?parentType .
} LIMIT 10

I'm not sure, though I noticed it too

  • The Files with the URI with the first format are directly accessible via URI, the second not. Why?

Because there is only a rewrite in place for /o/ (we can add /0/ though)

Screenshot 2023-04-27 at 10 56 39
b2d3c commented 1 year ago

If pathstoRewrite allow to put the URI in navigator and to find the page : Prima! It's exactly what we want.

We need for File no Layout and no specific Form to Edit (we make change through Form:Instantiation).

fkraeutli commented 1 year ago

Reverted change in Dev

fkraeutli commented 1 year ago

Adding the rewrite will cause 1 min of downtime. Is there a good time to do that @b2d3c ?

b2d3c commented 1 year ago

No problem! You can do it. Thanks

fkraeutli commented 1 year ago

Done