That sounds like a bug.
Remember, the 404 message can still contain an xml error. So, does it
return an empty page, or the xml? Using the http return codes might not
be in error.
Should validate returon 2xx when the validation fails?
Regards
On 12/13/2011 01:51 PM, Stephen Bayliss wrote:
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%22/>>
<owl:minCardinality
rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">1</owl:minCardinality
<http://www.w3.org/2001/XMLSchema#integer%22%3E1%3C/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%22/>>
<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