W3C home > Mailing lists > Public > public-openannotation@w3.org > September 2017

Re: Using RDF statements as an annotation body?

From: Robert Sanderson <azaroth42@gmail.com>
Date: Mon, 11 Sep 2017 08:41:52 -0700
Message-ID: <CABevsUHTg5ZqzSwydZPUzb-wYvvkKnG_XUDEWaiWUBTU-RSedg@mail.gmail.com>
To: Pantelis Natsiavas <pnatsiavas@certh.gr>
Cc: Christian Morbidoni <christian.morbidoni@gmail.com>, public-openannotation <public-openannotation@w3.org>
I can't speak to Protege as an environment, but the way that Christian
suggests is the way that I would also suggest for systems that support
named graphs (which are easy in JSON-LD, less easy in other serializations).

An alternative is to serialize the triples to be annotated into a string,
and then use the existing patterns for annotating strings:

{
  "type": "Annotation",
  "body": {
    "type": "TextualBody",
    "value": "<subject> <predicate> <object> ."
    "format": "text/turtle"
  },
  "target": ...
}

This means that the body would need to be parsed out from its string, but
keeps the body triples separate from the annotation triples.

Hope that helps,

Rob


On Mon, Sep 11, 2017 at 1:05 AM, Pantelis Natsiavas <pnatsiavas@certh.gr>
wrote:

> Hi Christian.
>
> What you suggest seems like a valid workaround. However, while it would be
> relatively easy to implement in Virtuoso where named graphs are supported,
> I cannot seem to find a way to implement it in Protege.
>
> Thank you very much for your answer.
>
> Kind regards,
> Pantelis Natsiavas
>
> _________________________________________________________________
>
> Παντελής Νατσιάβας
> Μηχανικός Λογισμικού, ΜΔΕ,
> Συνεργαζόμενος Ερευνητής, Υποψήφιος Διδάκτορας
> Ινστιτούτο Εφαρμοσμένων Βιοεπιστημών
> Εθνικό Κέντρο Έρευνας & Τεχνολογικής Ανάπτυξης
> 6ο χλμ. Χαριλάου-Θέρμης, Θέρμη, Θεσσαλονίκη
> Ταχ. Θυρίδα: 60361, 57001, Ελλάδα
> Τηλ.: +30 2311257606, Skype: pantelis.natsiavas
> Email: pnatsiavas@certh.gr
> _________________________________________________________________
>
> Pantelis Natsiavas
> Electrical and Computer Engineer, MEng, MSc
> Research Associate, PhD candidate
> Institute of Applied Biosciences
> Centre for Research & Technology Hellas
> 6th Km. Charilaou-Thermi Road, Thermi, Thessaloniki
> P.O. Box 60361, GR 57001, Greece
> Tel.: +30 2311257606, Skype: pantelis.natsiavas
> Email: pnatsiavas@certh.gr
>
> 2017-09-08 19:03 GMT+03:00 Christian Morbidoni <
> christian.morbidoni@gmail.com>:
>
>> Hi Pantelis,
>>
>> we where doing it in Pundit (thepund.it). We basically did it by using a
>> Named Graph as value of the hasBody properties.
>> In our case an annotation body was composed by a number of triples (that
>> users created via the Pundit UI), those triples where contained in the
>> named graph pointed by the hasBody property.
>> I remember it was a valid (compliant) solution at the time (some years
>> ago), honestly I'm currently not following the model evolution, so cannot
>> ensure it is still compliant. But we spend some time thinking about it and
>> it was a good solution because it then lets you query the body triples
>> easily, and aggregate triples coming from multiple annotations.
>>
>> hope it helps,
>>
>> best
>>
>> On Fri, Sep 8, 2017 at 2:18 PM, Pantelis Natsiavas <pnatsiavas@certh.gr>
>> wrote:
>>
>>> Dear all,
>>>
>>> I created an ontology with each RDF statement (typical
>>> subject-predicate-object triples) based on knowledge provided on a specific
>>> free-text snippet. I want to create a WADM Annotation on each RDF
>>> statement, having the *RDF statement itself *as a Body and pointing to
>>> the respective free-text snippet as a Target.
>>>
>>> Pointing to the free-text snippet as a target is clear to me using Text
>>> Quote Selectors. However, I cannot seem to find an example of annotating a
>>> free-text code with RDF statements per se.
>>>
>>> Can anybody point me to an example on how could this be done with
>>> Protege?
>>>
>>> Thank you in advance,
>>> Pantelis Natsiavas
>>> _________________________________________________________________
>>>
>>> Παντελής Νατσιάβας
>>> Μηχανικός Λογισμικού, ΜΔΕ,
>>> Συνεργαζόμενος Ερευνητής, Υποψήφιος Διδάκτορας
>>> Ινστιτούτο Εφαρμοσμένων Βιοεπιστημών
>>> Εθνικό Κέντρο Έρευνας & Τεχνολογικής Ανάπτυξης
>>> 6ο χλμ. Χαριλάου-Θέρμης, Θέρμη, Θεσσαλονίκη
>>> Ταχ.. Θυρίδα: 60361, 57001, Ελλάδα
>>> Τηλ..: +30 2311257606, Skype: pantelis.natsiavas
>>> Email: pnatsiavas@certh.gr <vkoutkias@certh.gr>
>>> _________________________________________________________________
>>>
>>> Pantelis Natsiavas
>>> Electrical and Computer Engineer, MEng, MSc
>>> Research Associate, PhD candidate
>>> Institute of Applied Biosciences
>>> Centre for Research & Technology Hellas
>>> 6th Km. Charilaou-Thermi Road, Thermi, Thessaloniki
>>> P.O. Box 60361, GR 57001, Greece
>>> Tel.: +30 2311257606, Skype: pantelis.natsiavas
>>> Email: pnatsiavas@certh.gr <vkoutkias@certh.gr>
>>>
>>
>>
>


-- 
Rob Sanderson
Semantic Architect
The Getty Trust
Los Angeles, CA 90049
Received on Monday, 11 September 2017 15:42:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:38:30 UTC