Thanks Holger, i shall investigate

On 30 Aug, 23:41, Holger Knublauch <[email protected]> wrote:
> Hi John,
>
> what you are looking for is usually called Reification or n-ary 
> relationships. Since RDF only supports triples, the trick is to introduce 
> some intermediate object that represents the relationship. This intermediate 
> object can hold any number of other attributes. For example,
>
>         Class ex:Reference
>
> with properties
>
>         ex:object  (e.g. <http://.......instance1........>
>         ex:attrib  (e.g. ATTRIB1)
>
> The actual relationships then become instances of those Reference classes. 
> You could decide to make those relationships blank nodes if you don't care 
> about inventing identifiers. The nested forms feature of TBC is helpful in 
> exploring the relationships by drilling into them. Furthermore, if you want 
> to get your simple triples back, you could introduce a magic SPIN property.
>
> Regards,
> Holger
>
> On Aug 31, 2010, at 1:58 AM, John Perdoni wrote:
>
>
>
> > Hi,
>
> > I am wondering if it is possible to set attributes on properties , so
> > that when returned in rdf/xml format, via a http request, I can
> > uniquely identify them
>
> > For example,
>
> > If I have an instance with a property, "hasText" which contains text
> > from part of a document, if parts of this text refer to other
> > instances, I add a "makesReferenceTo" property, with the object being
> > the instance the text refers to. My problem is that one section of
> > text can have multiple references to other instances resulting in the
> > following rdf/xml
>
> > <TextExtract>
> >      <makesReferenceTo rdf:resource="http://.......object1........";></
> > makesReferenceTo>
> >      <makesReferenceTo rdf:resource="http://.......object2........";></
> > makesReferenceTo>
> >       <makesReferenceTo
> > rdf:resource="http://.......object3........";></makesReferenceTo>
> > </TextExtract>
>
> > which although I can easily parse in my custom app, I have no way of
> > tying what part of the original text references what. Basically what I
> > am looking to achieve is an export like the following
>
> > <TextExtract>
> >      <makesReferenceTo ATTRIB1
> > rdf:resource="http://.......instance1........";></makesReferenceTo>
> >      <makesReferenceTo  ATTRIB2
> > rdf:resource="http://.......instance2........";></makesReferenceTo>
> >       <makesReferenceTo ATTRIB3
> > rdf:resource="http://.......instance3........";></makesReferenceTo>
> > </TextExtract
>
> > with the attribs ideally being a short string of text from the
> > original hasText property.
>
> > I probably have not explained myself very well as usual, but if you
> > could point me in the right direction it would be much appreciated.
>
> > Thanks for your continued support
>
> > Regards
>
> > John
>
> > --
> > You received this message because you are subscribed to the Google
> > Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
> > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> > To post to this group, send email to
> > [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/topbraid-users?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to