Hi, two objects with custom relation
RELS-EXT object_A <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:fedora="info:fedora/fedora-system:def/relations-external#"xmlns:uu="http://myurl.com/ontologies/relationships#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"> <rdf:Description xmlns:fedora-model="info:fedora/fedora-system:def/model#" rdf:about="info:fedora/uu:b227433b-7965-40a6-afa7-1e33a2835bbe"> <fedora-model:hasModel rdf:resource="info:fedora/cmodel:ObjectA"/> </rdf:Description> </rdf:RDF> RELS-EXT object_B <rdf:RDF xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:fedora="info:fedora/fedora-system:def/relations-external#" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:uu="http://myurl.com/ontologies/relationships#"> <rdf:Description xmlns:fedora-model="info:fedora/fedora-system:def/model#" rdf:about="info:fedora/uu:c8e0368a-9617-42ca-830a-e397b5e8b138"> <hasObjectxmlns="http://myurl.com/ontologies/relationships#" rdf:resource="info:fedora/uu:b227433b-7965-40a6-afa7-1e33a2835bbe"/> </rdf:Description> </rdf:RDF> As you see object_B is some sort collection that can have many ojbects of type object_A. After i create object_A, i am modifying RELS-EXT of object_B by adding "hasObject" relation. This query supposed to return all object_A within a collection of object_B (but returns 0 results): select $object from <#ri> where {$object <fedora-model:hasModel> <info:fedora/cmodel:ObjectA>. $object <http://myurl.com/ontologies/relationships#isObjectOf> <info:fedora/uu:c8e0368a-9617-42ca-830a-e397b5e8b138>} This query works, it does return correct object_B: select $object from <#ri> where {$object <http://myurl.com/ontologies/relationships#hasObject> <info:fedora/uu:b227433b-7965-40a6-afa7-1e33a2835bbe>} Do i need to modify RELS-EXT of object_A by adding 'isObjectOf' relation? What happens if i got really large item collection of type 'object_B' which are related to one 'object_A'? tnx for replay! ------------------------------------------------------------------------------ Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users