dsp-api icon indicating copy to clipboard operation
dsp-api copied to clipboard

How to allow the upload and editing of a XML text in Knora ?

Open mrivoal opened this issue 6 years ago • 8 comments

After a discussion with @lrosenth and @subotic, here is an issue based on a use case we have : a project would like to submit and update a text (TEI-XML) in Knora using a graphic interface.

The corpus: 1000 to 1200 texts, ranging from one paragraph to 40 pages, with 10-15 tags

The workflow:

  • the project provides a standoff mapping for her TEI-XML edition
  • users uses Oxygen to generate the TEI-XML editions
  • by copy-pasting the TEI-XML text from Oxygen, they will upload the TEI-XML text in a dedicated text field in Knora (and Salsah/knora-app)
  • if the TEi-XML text uploaded needs to be edited, they will edit it in Oxygen and copy-paste the new version of the text in the text field in Knora

What we think we need in Knora:

  • a new salsah-gui:guielement, similar to Richtext, but not enforcing the choice of the standard mapping
  • we could possibly use the salsah-gui-guiAttributeproperty to link a TextValue property to the right standoff mapping, such as:
### http://www.knora.org/ontology/0113/lumieres-lausanne#transcriptionHasText

lumieres-lausanne:transcriptionHasText rdf:type owl:ObjectProperty ;
                    rdfs:subPropertyOf knora-base:hasValue ;
                    rdfs:label """Texte"""@fr ;
                    rdfs:comment """Texte de la transcription diplomatique"""@fr ;
                    knora-base:subjectClassConstraint lumieres-lausanne:Transcription ;
                    knora-base:objectClassConstraint knora-base:TextValue ;
                    salsah-gui:guiElement salsah-gui:Richtext ,
                    salsah-gui:guiAttribute "standoff-mapping=<http://rdfh.ch/projects/0113/mappings/manuscript-mapping>" .

mrivoal avatar Oct 01 '19 08:10 mrivoal

I think you'll need to discuss this with @tobiasschweizer, who is on holiday, so please be patient.

benjamingeer avatar Oct 01 '19 09:10 benjamingeer

Does this mainly affect SALSAH 1.5?

tobiasschweizer avatar Oct 14 '19 06:10 tobiasschweizer

Since there is no alternative to edit data at the moment, yes.

But since it make take some time until there is a viable standoff editor in Knora-app, I think it could/should also affect Knora-app.

mrivoal avatar Oct 14 '19 07:10 mrivoal

I think it could/should also affect Knora-app.

Are you solely referring to the GUI or do you think there are requirements affecting the Knora API?

tobiasschweizer avatar Oct 14 '19 07:10 tobiasschweizer

I am referring to the GUI. I couldn't say if some of these requirements would affect the current Knora API.

This possibly will?

we could possibly use the salsah-gui-guiAttributeproperty to link a TextValue property to the right standoff mapping

mrivoal avatar Oct 14 '19 07:10 mrivoal

If you create or modify a TextValue, a mapping has to be indicated. In the simplest case, an existing mapping can be used. Otherwise a new mapping has to be created first and then be indicated.

tobiasschweizer avatar Oct 14 '19 07:10 tobiasschweizer

Yes, the idea here is that they would indicate the right (project-specific) mapping (which won't be the standard mapping) in the ontology itself for a given TextValue.

mrivoal avatar Oct 14 '19 08:10 mrivoal

issue moved to DSP-1219

flavens avatar Jan 13 '21 10:01 flavens