I want to deliver metadata in another format than Dublin Core via OAI-PMH.

For this purpose I installed the oaiprovider from the  
fedora-commons.org download page. However, it does not deliver any  
metadata yet, a typical request like

lynx  
"http://localhost:8080/oaiprovider/?verb=ListRecords&metadataPrefix=oai_dc";

get the answer

2012-03-05T11:29:13Z http://localhost:8080/oaiprovider/ no records
    match your selection criteria

What's going wrong here?

I have already gone through configuration and
lynx "http://localhost:8080/oaiprovider/?verb=Identify
works well. From the access logs I can see, that the oaiprovider  
regularly polls the identify service:

127.0.0.1 - - [05/Mar/2012:12:28:53 +0100] "GET  
/fedora/oai?verb=Identify HTTP/1.1" 200 1884

I have set the logfile level to debug and get the messages appended below
in catalina.out.

--Jörg Knappen

DEBUG log messages:
INFO 2012-03-05 12:40:54.785 [Thread-5] (FedoraOAIDriver) Current date  
reported by Fedora is 2012-03-05T11:40:54.785Z
DEBUG 2012-03-05 12:40:54.789 [Thread-5] (FedoraOAIDriver) getTuples()  
called with query:
select $set $setSpec $setName 'info:fedora/*/SetInfo.xml'
   subquery(    select $diss
           from <#ri>
where $set <http://www.openarchives.org/OAI/2.0/setSpec> $setSpec
and $set <http://www.openarchives.org/OAI/2.0/setName> $setName
and $set <info:fedora/fedora-system:def/view#disseminates> $diss
and $diss <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/SetInfo.xml>
)
from <#ri>where $set <http://www.openarchives.org/OAI/2.0/setSpec> $setSpec
and $set <http://www.openarchives.org/OAI/2.0/setName> $setName

DEBUG 2012-03-05 12:40:54.795 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $item $itemID $date $state
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and    $item     <info:fedora/fedora-system:def/model#state> $state
and $item <info:fedora/fedora-system:def/view#disseminates> $diss
and $diss <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/DC>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.801 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.801 [Thread-5] (FedoraOAIDriver) Done saving  
query results
DEBUG 2012-03-05 12:40:54.801 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $itemID $setSpec
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and $item <info:fedora/fedora-system:def/view#disseminates> $diss
and $diss <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/DC>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $item  
<info:fedora/fedora-system:def/relations-external#isMemberOf> $set and  
$set <http://www.openarchives.org/OAI/2.0/setSpec> $setSpec
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.806 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.806 [Thread-5] (FedoraOAIDriver) Done saving  
query results
DEBUG 2012-03-05 12:40:54.806 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $itemID
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and $item <info:fedora/fedora-system:def/view#disseminates> $diss_md
and $diss_md <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/DC>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and $item <info:fedora/fedora-system:def/view#disseminates> $diss_about
and $diss_about <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/about_oai_dc>
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.812 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.812 [Thread-5] (FedoraOAIDriver) Done saving  
query results
DEBUG 2012-03-05 12:40:54.812 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $item $itemID $date $state
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and    $item     <info:fedora/fedora-system:def/model#state> $state
and $item <info:fedora/fedora-system:def/view#disseminates> $diss
and $diss <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/CMDI>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.817 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.817 [Thread-5] (FedoraOAIDriver) Done saving  
query results
DEBUG 2012-03-05 12:40:54.817 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $itemID $setSpec
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and $item <info:fedora/fedora-system:def/view#disseminates> $diss
and $diss <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/CMDI>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $item  
<info:fedora/fedora-system:def/relations-external#isMemberOf> $set and  
$set <http://www.openarchives.org/OAI/2.0/setSpec> $setSpec
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.822 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.822 [Thread-5] (FedoraOAIDriver) Done saving  
query results
DEBUG 2012-03-05 12:40:54.823 [Thread-5] (FedoraOAIDriver)  
getCSVResults() called with query:
select $itemID
from   <#ri>
where  $item           <http://www.openarchives.org/OAI/2.0/itemID> $itemID
and $item <info:fedora/fedora-system:def/view#disseminates> $diss_md
and $diss_md <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/CMDI>
and    $item     <info:fedora/fedora-system:def/view#lastModifiedDate> $date
and    $date           <http://mulgara.org/mulgara#after>  
'2012-03-05T11:38:54.547Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and    $date           <http://mulgara.org/mulgara#before>  
'2012-03-05T11:40:54.786Z'^^<http://www.w3.org/2001/XMLSchema#dateTime> in  
<#xsd>
and $item <info:fedora/fedora-system:def/view#disseminates> $diss_about
and $diss_about <info:fedora/fedora-system:def/view#disseminationType>  
<info:fedora/*/about_cmdi>
order  by $itemID asc
DEBUG 2012-03-05 12:40:54.828 [Thread-5] (FedoraOAIDriver) Saving  
query results to disk...
DEBUG 2012-03-05 12:40:54.828 [Thread-5] (FedoraOAIDriver) Done saving  
query results





------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to