Hi Graeme

1.  Yes, you can define a subProperty relationship in your ontology, however
no inferencing will actually take place, so you would have to do this
yourself, eg in your query:

select $s $o from <#ri>
where $s $p $o
and (
$p <mulgara:is> <rel:isPartOf> or
$p <mulgara:is> <myns:isClipOf>
)

Mulgara does in fact provide some inferencing capabilities, take a look at
http://docs.mulgara.org/inferencing/infermulgara.html and
http://mulgara.org/trac/wiki/Rules - however you'd have to (1) have an
external Mulgara server and (2) run this inferencing outside of Fedora.  You
could have a separate schema model (ie not part of <#ri>) and generate a
model containing your inferenced data, and then run your queries over this
for example.

2.  The simplest way of doing this is probably to express these attributes
as properties of the clip, ie

<demo:clip> <myns:isClipOf> <demo:sourceObject>
<demo:clip> <myns:from> "15.32"
<demo:cip> <myns:to> "3600.28"

So these could be implemented as separate relationships to express these
properties, eg an RDF fragment
<myns:from>15.32</myns:from> rather than as attributes.

Alternatively, you could model a "clip creation" event entity (as you seem
to be wanting to express properties of the relationship itself, rather than
the clip, you in fact need to "surface" that relationship as an entity in
its own right), ie:

<demo:clip> <myns:createdBy> <demo:clipCreationEvent>
<demo:clipCreationEvent> <myns:source> <demo:sourceObject>
<demo:clipCreationEvent> <myns:from> "15.32"
<demo:clipCreationEvent> <myns:to> "3600.28"

However note that RELS-EXT only allows direct relationships with the object
as the subject of the relationship, so to implement this you'd need to have
the demo:clipCreationEvent as a distinct Fedora object.  (This kind of thing
is often handled by having blank nodes, but this is also outside of Fedora's
use of RDF in RELS-EXT).

Regards
Steve



> -----Original Message-----
> From: West, Graeme [mailto:graeme.w...@gcu.ac.uk] 
> Sent: 09 November 2010 09:26
> To: Support and info exchange list for Fedora users.
> Subject: [fcrepo-user] Custom RDF schemas for RELS-EXT & 
> subclassingexisting relationships
> 
> 
> Hello Fedorinos,
> 1. I'm looking to refine the 'hasPart' and 'hasConstituent' 
> relationships which are part of the RELS-EXT schema - I want 
> to create a relationships that are a 'subclasses' of these, 
> with names particular to my use case, such as in the 
> following example:
> 
> > <rdf:RDF 
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; 
> xmlns:fedora="info:fedora/fedora-system:def/relations-external
> #" xmlns:myns="http://mysite.com/schema.xml#";>
> >   <rdf:Description rdf:about="info:fedora/demo:1">
> >       <myns:isClipOf 
> rdf:resource="info:fedora/demo:123"></myns:isClipOf>
> >   </rdf:Description>
> > </rdf:RDF>
> 
> 
> To establish the subclassing, can I do something like this in 
> my RDF ontology?
> 
> > <rdfs:subPropertyOf 
> rdf:resource="info:fedora/fedora-system:def/relations-external
> /isPartOf"/>
> 
> 
> 2. Is it possible to store and query 'attributes' in RDF in 
> the resource index?
> e.g.:
> > <myns:isClipOf rdf:resource="info:fedora/demo:123" 
> myns:from="15.32" myns:to="3600.28"></myns:isClipOf>
> 
> 
> Thanks in advance,
> 
> Graeme
> 
> 
> Graeme West
> Digital Repository Developer
> Information Services
> Glasgow Caledonian University
> graeme.w...@gcu.ac.uk
> 
> 
> 
> 
> Glasgow Caledonian University is a registered Scottish 
> charity, number SC021474
> 
> Winner: Times Higher Education's Widening Participation 
> Initiative of the Year 2009 and Herald Society's Education 
> Initiative of the Year 2009
> http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/
1/name,6219,en.html
----------------------------------------------------------------------------
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to