Hi,

at the wiki you have a summary of all methods available to import RDF data
into Marmotta:

http://wiki.apache.org/marmotta/ImportData

The snippet looks valid RDF/XML, but you could have a syntactic issue
somewhere else in your file. I'd recommend you to firstly validate it:

http://www.w3.org/RDF/Validator/

and then try to impor it again, a submit any other stracktrace you can have
in the logs that give us a clue what's wrong.

Cheers,


On Wed, Jun 3, 2015 at 2:19 AM, H Zhang <zhang4...@gmail.com> wrote:

> Hello,
>
> I will need some ideas on importing rdf into Marmotta, and here is the ns
> and snippet of the rdf description:
>
>>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
>>     xmlns:vocab="http://localhost:2020/vocab/";
>>     xmlns:foaf="http://xmlns.com/foaf/0.1/";
>>     xmlns:edm="http://www.europeana.eu/schemas/edm/";
>>     xmlns:dc="http://purl.org/dc/elements/1.1/";
>>     xmlns:ore="http://www.openarchives.org/ore/terms/";
>>     xmlns:dcterms="http://purl.org/dc/terms/";
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema#";
>>     xmlns:pcdm="http://pcdm.org/models#";
>>     xmlns:dctype="http://purl.org/dc/dcmitype/";
>>     xmlns:map="http://localhost:2020/#";
>>     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";>
>
>   *<*rdf:*Description *rdf:about="
>> http://sa.library.oregonstate.edu/handle/1957%2F906";
>> *>*    *<*pcdm:*hasMember *rdf:resource="
>> http://sa.library.oregonstate.edu/handle/1957%2F906/bitstream/3";
>> */>*    *<*pcdm:*hasMember *rdf:resource="
>> http://sa.library.oregonstate.edu/handle/1957%2F906/bitstream/1";
>> */>*    *<*pcdm:*hasMember *rdf:resource="
>> http://sa.library.oregonstate.edu/handle/1957%2F906/bitstream/2";
>> */>*    *<*dcterms:*subject *rdf:resource="
>> http://id.loc.gov/authorities/classification/Wood%20--%20Drying%20--%20Bibliography
>> "
>> */>*    *<*dcterms:*subject *rdf:resource="
>> http://id.loc.gov/authorities/classification/Lumber%20--%20Drying%20--%20Bibliography
>> "
>> */>*    *<*dcterms:*issued>*1961-08*</*dcterms:
>> *issued>*    *<*dcterms:*language>*en_US*</*dcterms:
>> *language>*    *<*dcterms:*publisher>*Madison, Wis. : U.S. Dept. of
>> Agriculture, Forest Service, Forest Products Laboratory*</*dcterms:
>> *publisher>*    *<*edm:*dataProvider>*Oregon State University*</*edm:
>> *dataProvider>*    *<*edm:*dataProvider>*Oregon State University*</*edm:
>> *dataProvider>*    *<*edm:*dataProvider>*Oregon State University*</*edm:
>> *dataProvider>*    *<*rdf:*type *rdf:resource="
>> http://pcdm.org/models#Object";
>> */>*    *<*rdf:*type *rdf:resource="http://pcdm.org/models#Object";
>> */>*    *<*rdf:*type *rdf:resource="http://pcdm.org/models#Object";
>> */>*    *<*dcterms:*title>*List of publications on the seasoning of wood
>> *</*dcterms:
>> *title>*    *<*dcterms:*creator>*Forest Products Laboratory (U.S.)*</*
>> dcterms:
>> *creator>*    *<*dcterms:*isPartOf>*Report (Forest Products Laboratory
>> (U.S.))*</*dcterms:
>> *isPartOf>*    *<*dcterms:*isPartOf>*no.446*</*dcterms:
>> *isPartOf>*    *<*dcterms:*type>*Book*</*dcterms:
>> *type>*    *<*dcterms:*available>*2006-02-01T14:12:12Z*</*dcterms:
>> *available>*    *<*dcterms:*identifier>*http://hdl.handle.net/1957/906
>> *</*dcterms:
>> *identifier>*  *</*rdf:*Description>*
>
> The rdf contains about 50,000 records. And I have tried the admin and curl
> to import:
> Admin: relation as 'meta' and mime as 'application/rdf+xml', and the error
> I get is "http://localhost:8080 unknown or not implemented: unknown error"
> curl: curl -sfS -X POST -H "Content-Type: application/rdf+xml;
> charset=utf-8" -d @sa-dump.rdf http://localhost:8080/marmotta/ and the
> error I get is "The requested URL returned error: 500 Internal Server Error"
> What might the cause of the error? IS that related with the new NS such as
> 'determs' and 'pcdm'? Should I update the meta.properties?
>
> Thanks
> --
> Hui
>
>



-- 
Sergio Fernández
Partner Technology Manager
Redlink GmbH
m: +43 6602747925
e: sergio.fernan...@redlink.co
w: http://redlink.co

Reply via email to