RIF-CS import error...

46 views
Skip to first unread message

Tim O'Connor

unread,
Nov 1, 2012, 2:25:32 AM11/1/12
to redbo...@googlegroups.com
Hi guys - Im working on a RIF-CS import from ANDS.  Im using the rifXmlMap.json file, but Im getting the following:

2012-11-01 17:16:01,045          ERROR  namicPageServiceImpl Thu Nov  1 17:16:01 2012 ERROR Exception occurred evaluting XPath: //my:Title. Exception: XPath expression uses unbound namespace prefix my
org.dom4j.XPathException: Exception occurred evaluting XPath: //my:Title. Exception: XPath expression uses unbound namespace prefix my

Thing is I cannot see where this error comes from, either from the example RIF-CS, or the json file:

{
    "comment": "This is a sample RIF-CS mapping. It is important to check this against your RIF-CS as there can be some differences across feeds etc",
    "mappings": {
        "//rif:registryObjects/rif:registryObject/rif:collection/rif:name[@type='primary']/rif:namePart": ["title", "dc:title", "redbox:submissionProcess.dc:title"],
        "//rif:registryObjects/rif:registryObject/rif:collection/rif:description[@type='brief']": ["description", "dc:description", "redbox:submissionProcess.dc:description"],
        "//rif:registryObjects/rif:registryObject/rif:collection/rif:subject[@type='local']": "dc:subject.vivo:keyword.0.rdf:PlainLiteral",
        "//rif:registryObjects/rif:registryObject/rif:collection/rif:subject[@type='anzsrc-for']": "dc:subject.anzsrc:for.0.rdf:resource",
        "//rif:registryObjects/rif:registryObject/rif:collection/rif:subject[@type='anzsrc-seo']": "dc:subject.anzsrc:seo.0.rdf:resource"
    },
    "exceptions": {
        "output": "skos:note.0.dc:description",
        "fields": {
            "dc:subject.anzsrc:for.0.rdf:resource": "Cannot resolve ANZSRC (FOR) Codes",
            "dc:subject.anzsrc:seo.0.rdf:resource": "Cannot resolve ANZSRC (SEO) Codes"
        }
    },
    "defaultNamespace": {"rif": "http://ands.org.au/standards/rif-cs/registryObjects"},
}

Any ideas?

Andrew Brazzatti

unread,
Nov 1, 2012, 9:56:05 PM11/1/12
to redbo...@googlegroups.com
Hi Tim,

That expression appears in basicXmlMap.json, perhaps it is using that map rather than the one you're working with?

Andrew


-- Website: http://www.redboxresearchdata.com.au
 
You received this message because you are subscribed to the Google Groups ReDBox group. To post to this group, send email to redbo...@googlegroups.com. To unsubscribe from this group, send email to redbox-repo...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/redbox-repo?hl=en

Tim O'Connor

unread,
Nov 28, 2012, 12:11:58 AM11/28/12
to redbo...@googlegroups.com
Ok, I changed the file extension to 'rif', but now I see the following error in the logs:
Unknown file extension in alerts directory 'rif-example.rif'

the system json file is configured with:

"alerts": {
        "path": "${fascinator.home}/alerts",
        "xmlMaps": {
            "xml": "${fascinator.home}/alerts/config/basicXmlMap.json",
            "rif": "${fascinator.home}/alerts/config/rifXmlMap.json"
        }
    },

So Im not sure why its not working...

Sue Li

unread,
Jan 14, 2013, 12:14:35 AM1/14/13
to redbo...@googlegroups.com
Hi Tim,

Have you fix your problem now?
Seems I got the same problem as yours, if you already fixed, could you please tell me how do you solve it?

Cheers,
Sue
Reply all
Reply to author
Forward
0 new messages