dasch-swiss / dsp-api

DaSCH Service Platform API
http://dasch-swiss.github.io/dsp-api/
Apache License 2.0
74 stars 18 forks source link

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

Open mrivoal opened 5 years ago

mrivoal commented 5 years ago

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:

What we think we need in Knora:

### 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>" .
benjamingeer commented 5 years ago

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

tobiasschweizer commented 5 years ago

Does this mainly affect SALSAH 1.5?

mrivoal commented 5 years ago

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.

tobiasschweizer commented 5 years ago

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?

mrivoal commented 5 years ago

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

tobiasschweizer commented 5 years ago

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.

mrivoal commented 5 years ago

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.

flavens commented 3 years ago

issue moved to DSP-1219