Hi,

I have a question and a comment about importing objects using FOXML. 

Question: Is there any way to reference Managed datastreams from a local 
filesystem as opposed to content siting on a web server somewhere? I've tried 
using <foxml:contentLocation REF="file:///path/to/file.jpg" TYPE="URL"/> with 
no luck (the URL is good since "curl -O file:///path/to/file.jpg" works). The 
FOXML 1.1 schema doesn't enumerate contentLocation TYPE values so I don't know 
what else to try. I am using the REST API to import my FOXML and can import 
successfully if I reference a datastream using an http:// URL.

Comment: The reference example FOXML file at 
https://wiki.duraspace.org/download/attachments/4718716/foxml_reference_example.xml?version=1&modificationDate=1217847185364
 contains the following comment describing the foxml:property element:

"At ingest, the object MUST have these attributes:
        - type:(required) The object is classified as one of three primitive 
Fedora object types, 
          namely FedoraObject, FedoraBDefObject, FedoraBMechObject,
          or FedoraCModelObject.
        - state:(required) The object state can be Active (A), Inactive (I), or 
Deleted (D)"

However, the FOXML 1.1 schema doesn't list 'type' as a valid member of the 
foxml:property NAME attribute enumeration. So the comment is not consistent 
with the schema.

Sure enough, when I try to import an object using FOXML and include the 
following:

<foxml:property NAME="info:fedora/fedora-system:def/model#type" 
VALUE="FedoraObject"/>

I get an error ("The message was "URI=null Line=9: cvc-enumeration-valid: Value 
'info:fedora/fedora-system:def/model#type' is not facet-valid with respect to 
enumeration [...]"). 

Mark



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to