W3C home > Mailing lists > Public > public-lod@w3.org > July 2012

Re: How to model the content from a document?

From: <hellmann@informatik.uni-leipzig.de>
Date: Thu, 05 Jul 2012 00:17:24 +0200
Message-ID: <20120705001724.17356vyhb3btfxmc@mail.uni-leipzig.de>
To: Leyla Jael García Castro <leyla.jael.garcia@gmail.com>
Cc: public-lod@w3.org
NIF produces blank node free RDF, which is simple to understand and  
flexible to use:  

The basic idea is to model Strings in Context.

So you have a document:

And you want to refer to its content (all characters from 0 to the end ):

Now you define the content as the Context and say, that it occurs in  
the Document:
@prefix : <http://www.w3.org/DesignIssues/LinkedData.html#>
:offset_0_26546 a str:Context ;
   str:occursIn <http://www.w3.org/DesignIssues/LinkedData.html> .

Additionally you can say that a substring occursIn a paragraph:
:offset_600_1000 a str:String ;
   str:referenceContext :offset_ 0_26546 .
   str:occursIn <yourparagraphuri> .

Or you can model each paragraph as a different context:

:offset_600_1000 a str:Context ;
    str:occursIn <yourparagraphuri1> .
:offset_1001_2000 a str:Context ;
    str:occursIn <yourparagraphuri2> .

The only drawback is that there is only an old owl ontology for NIF  
1.0 http://nlp2rdf.org/nif-1-0 . NIF 2.0 will not be backwards  

We hope to have it ready in two months.
All the best,

Zitat von Leyla Jael García Castro <leyla.jael.garcia@gmail.com>:

> Hi all,
> I am modelling the structure and content of document. I am using DoCO (
> http://purl.org/spar/doco<http://www.essepuntato.it/lode/http://purl.org/spar/doco>)
> for the structure, i.e. Section, Paragraph, etc.
> Now I need to model the actual content in a paragraph, meaning the text in
> it. Here an example:
> <myDocumentURI> pattern:contains [ a doco:Section
> ; pattern:contains [ a doco:Paragraph
>  ; -content property- "This is the text in the paragraph." ] ] .
> What would be the best approach to do that? *bibo:content* (
> http://bibliontology.com/) is deprecated so I do not want to use that one;
> the recommendation there is to use *rdf:value*, that would be an
> alternative. *sioc:conten*t is another alternative. It could also be *
> c4o:hasContent* (http://purl.org/spar/c4o). I guess there are also other
> alternatives out there.
> Which one would be the best alternative? Any suggestions?
> Thanks so much,
> lj

This message was sent using IMP, the Internet Messaging Program.
Received on Wednesday, 4 July 2012 22:17:52 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:21:28 UTC