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

Re: Using RDF statements as an annotation body?

From: Pantelis Natsiavas <pnatsiavas@certh.gr>
Date: Mon, 11 Sep 2017 14:16:14 +0300
Message-ID: <CAHBxD6vE4A77oZzVJG+83qor3RRsd-CJSYSfeT_hf0zSYfs4hQ@mail.gmail.com>
To: Pantelis Natsiavas <pnatsiavas@certh.gr>
Cc: public-openannotation@w3.org
I think I found a solution by annotating the statements (e.g. an
ObjectPropertyAssertion) with an annotation using "hasTarget" as the
annotation property.

For example, if I want to use the RDF statement <Subject, Property, Object>
to annotate a target pdf located somewhere in the internet, I would use the
following rationale:

<ObjectPropertyAssertion>
        <Annotation>
            <AnnotationProperty IRI="http://www.w3.org/ns/oa#hasTarget"/>
            <AnonymousIndividual
nodeID="_:genid-f7b71d4c-657e-40bc-bc69-31fc3af8b603"/>
        </Annotation>
        <ObjectProperty IRI="<Predicate>"/>
        <NamedIndividual IRI="<Subject>"/>
        <NamedIndividual IRI="<Object>"/>
</ObjectPropertyAssertion>

<ObjectPropertyAssertion>
        <ObjectProperty IRI="http://www.w3.org/ns/oa#hasSelector"/>
        <AnonymousIndividual
nodeID="_:genid-f7b71d4c-657e-40bc-bc69-31fc3af8b603"/>
        <NamedIndividual IRI="#selector_1"/>
</ObjectPropertyAssertion>

<ClassAssertion>
        <Class IRI="http://www.w3.org/ns/oa#TextQuoteSelector"/>
        <NamedIndividual IRI="#selector_1"/>
    </ClassAssertion>

<DataPropertyAssertion>
        <DataProperty IRI="http://www.w3.org/ns/oa#exact"/>
        <NamedIndividual IRI="#selector_1"/>
        <Literal datatypeIRI="
http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral">some text</Literal>
</DataPropertyAssertion>

 <DataPropertyAssertion>
        <DataProperty IRI="http://www.w3.org/ns/oa#prefix"/>
        <NamedIndividual IRI="#selector_1"/>
        <Literal datatypeIRI="
http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral">some
prefix</Literal>
</DataPropertyAssertion>

<DataPropertyAssertion>
        <DataProperty IRI="http://www.w3.org/ns/oa#suffix"/>
        <NamedIndividual IRI="#selector_1"/>
        <Literal datatypeIRI="
http://www.w3.org/1999/02/22-rdf-syntax-ns#PlainLiteral">some
suffix</Literal>
</DataPropertyAssertion>

It can be done in protege by annotating a statement using the "@" symbol on
the right of each property assertion (namely the original <Subject,
Property, Object> statement), in the "Property assertions" view.

I am not really sure that it is fully compliant but it seems Ok to me.

Best 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-11 11:05 GMT+03:00 Pantelis Natsiavas <pnatsiavas@certh.gr>:

> 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>
>>>
>>
>>
>
Received on Monday, 11 September 2017 11:17:24 UTC

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