In the ONTOLOGY datastream of a content model object, one can specify
- the cardinality of a relationship
- the type (ie type from hasModel relationship) of the target
I am finding that if the target object does not exist, then the validate
method is reporting a 404 error. That's the same error as one would get if
one tried to validate an object that didn't exist; so it would instead be
useful to give the XML error to distinguish between these two cases.
So, if I have the relationship in test:1's RELS-EXT as follows:
<info:fedora/test:1> <fedora-model:hasModel> <info:fedora/test:CModel-1>
<info:fedora/test:1> <rel:isMemberOf> <info:fedora/test:collection>
And then in the CModel CModel-1 I define
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty
rdf:resource="info:fedora/fedora-system:def/relations-external#isMemberOf"/
<http://purl.org/vocab/frbr/core#exemplarOf> >
<owl:minCardinality rdf:datatype="1
<http://www.w3.org/2001/XMLSchema#integer>
http://www.w3.org/2001/XMLSchema#integer">1</owl:minCardinality>
</owl:Restriction>
</rdfs:subClassOf>
<rdfs:subClassOf>
<owl:Restriction>
<owl:onProperty
rdf:resource="info:fedora/fedora-system:def/relations-external#isMemberOf"/
<http://purl.org/vocab/frbr/core#exemplarOf> >
<owl:allValuesFrom
rdf:resource="info:fedora/test:CModel-collection#class"/>
</owl:Restriction>
</rdfs:subClassOf>
Then if the object test:collection does not exist, on validating test:1 I
get a 404 error because it does not exist.
Does this sound like a bug?
Steve
------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and
improve service delivery. Take 5 minutes to use this Systems Optimization
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users