Re: [Dspace-tech] REST API for DSpace

2011-06-18 Thread Marianna Mühlhölzer
Hi Bojan,

Many thnaks for the quick answer.

With kind regards,
Marianna
 
 
 Am 17.06.2011 13:40, schrieb Marianna Mühlhölzer: 
  Hi Bojan, 
  
  I want to use the REST Interface for browsing our DSpace repository
 by 
  title, date and subject. When trying to sort items I get problems
 with 
  the pagination. The _perpage parameter does not work. Using
 _perpage 
  alone has no influence on the number of retrieved items. I always
 get 
  all items. Using a combination of _perpage and _page delivers
 strange 
  results. For example, _perpage=2_page=1 gives all items, 
  _perpage=4_page=1 gives 4 items, and _perpage=4_perpage=2 is
 empty. 
 
 I opened JIRA issue for this problem, this is probably a bug. 
 
 
  I have two further questions: 
  
  1. The sorting process gives no information about the total number
 of 
  items in the repository. Therefore, before starting pagination I
 have to 
  request all items and count them, in order to realize the
 pagination. 
  Is there a better way to do browsing via REST? 
 
 This problem is related with DSpace API, as the underlying functions
 do 
 not provide such information. In some big collections this introduces 
 performance problem too, as we need to read bigger portion of data
 than 
 is to be served. Some time ago I posted a patch for this but it do
 not 
 covers Oracle and other RDMBSs completely, so should be considered 
 different way. 
 
 
  2. The metadata of an item are presented as strings, which is not
 very 
  comfortable to handle. I would prefer to have them via tag per
 metadata 
  field. Do you plan to realize something like this? 
 
 This issue has been rissen by Robin Taylor too. I haven't considered
 it 
 as a problem before. It is currently reported on the JIRA list and
 will 
 probably have a lower priority as there are other issues deemed more 
 important. 
 
 Thanks/Regards 
 Bojan 
 
 --
  
 EditLive Enterprise is the world's most technically advanced content 
 authoring tool. Experience the power of Track Changes, Inline Image 
 Editing and ensure content is compliant with Accessibility Checking. 
 http://p.sf.net/sfu/ephox-dev2dev
 ___ 
 DSpace-tech mailing list 
 [hidden email] 
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 
 
 
 __
 If you reply to this email, your message will be added to the
 discussion below:
 http://dspace.2283337.n4.nabble.com/REST-API-for-DSpace-tp3343457p3606895.html
  
 To start a new topic under DSpace - Tech, email ml-node
 +3276945-743330907-242...@n4.nabble.com 
 To unsubscribe from DSpace - Tech, click here. 



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/REST-API-for-DSpace-tp3343457p3607428.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] REST API for DSpace

2011-06-17 Thread Marianna Mühlhölzer
Hi Bojan,

I want to use the REST Interface for browsing our DSpace repository by
title, date and subject. When trying to sort items I get problems with
the pagination. The _perpage parameter does not work. Using _perpage
alone has no influence on the number of retrieved items. I always get
all items. Using a combination of _perpage and _page delivers strange
results. For example, _perpage=2_page=1 gives all items,
_perpage=4_page=1 gives 4 items, and _perpage=4_perpage=2 is empty.

I have two further questions:

1. The sorting process gives no information about the total number of
items in the repository. Therefore, before starting pagination I have to
request all items and count them, in order to realize the pagination.
Is there a better way to do browsing via REST?

2. The metadata of an item are presented as strings, which is not very
comfortable to handle. I would prefer to have them via tag per metadata
field. Do you plan to realize something like this?

With regards,
Marianna 


-- 

Marianna Mühlhölzer
Niedersächsische Staats- und Universitätsbibliothek
BibliotheksInformationsSysteme
Platz der Göttinger Sieben 1
37073 Göttingen
Zi.: 2.38
Tel.: +49 (0)551 39-4255
E-Mail: muehlhoel...@sub.uni-goettingen.de


--
View this message in context: 
http://dspace.2283337.n4.nabble.com/REST-API-for-DSpace-tp3343457p3605171.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Dspace SRW/SRU search problem

2011-06-16 Thread Marianna Mühlhölzer
Hi,

 i mean here: http://code.google.com/p/oclcsrwdspacelucene/issues/list
 
 2011/6/15 Kocisky koci...@autistici.org
 Hi, i would suggest you to post the issue
 at http://code.google.com/p/oclcsrw/issues/list.
 
 
 K
 

Ralph LeVan wrote me already the solution: my oclcsrwdspacelucene-code
was not up to date.

Thanks,
Marianna

 
 2011/6/2 Marianna Mühlhölzer mmue...@sub.uni-goettingen.de
 
 
 Dear all, 
 
 several month ego I installed the Dspace SRW/SRU
 Service for DSpace 
 1.6.2 and it worked without any problems. But after an
 update to DSpace 
 1.7.2 I get the following error message: 
 
 2011-06-02 19:07:36,365 DEBUG
 ORG.oclc.os.SRW.SRWDatabase @ query: 
  64 63 2e 74 69 74 6c 65 20 3d 20 22 74 65 73 74
  dc.title = test 
  22
 
 
 2011-06-02 19:07:37,091 INFO
  ORG.oclc.os.SRW.SRWDatabase @ 'dc.title = 
 test'== 9 
 2011-06-02 19:07:37,092 DEBUG
 ORG.oclc.os.SRW.SRWDatabase @ keeping 
 resultSet 'i28ewp' for 300 seconds 
 2011-06-02 19:07:37,092 DEBUG
 ORG.oclc.os.SRW.SRWDatabase @ 
 schemaName=info:srw/schema/1/dc-v1.1, 
 schemaID=info:srw/schema/1/dc-v1.1, 
 sortKeys= 
 2011-06-02 19:07:37,092 DEBUG
 ORG.oclc.os.SRW.SRWDatabase @ making 
 RecordIterator, startPoint=1,
 schemaID=info:srw/schema/1/dc-v1.1 
 2011-06-02 19:07:37,113 INFO 
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ 
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1 
 f001f, startPoint=1, numRecs=9 
 2011-06-02 19:07:37,113 DEBUG
 ORG.oclc.os.SRW.SRWDatabase @ trying to 
 get 9 records starting with record 1 from a set of 9
 records 
 2011-06-02 19:07:37,114 INFO 
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in
 hasNext: 
 whichRecord=0, numRecs=9, resultItems.le 
 ngth=9 
 2011-06-02 19:07:37,114 INFO 
 ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in
 nextRecord: 
 lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1f001f, 
 startPoint=1, 
 whichRecord=0 
 2011-06-02 19:07:37,116 ERROR 
 gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl
 @ 
 java.lang.NullPointerException 
 java.lang.NullPointerException 
 at 
 
 org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:220) 
 at org.dspace.content.Item 
 $MetadataCache.retrieveMetadata(Item.java:2710) 
 at org.dspace.content.Item
 $MetadataCache.get(Item.java:2643) 
 at
 org.dspace.content.Item.getMetadata(Item.java:2616) 
 at
 org.dspace.content.Item.getMetadata(Item.java:457) 
 
 
 It looks as if the number of the query results is
 retrieved and the 
 records cannot be fetched.   
 
 Can anybody help me with this problem? 
 
 Thanks with regards, 
 Marianna Mühlhölzer 
 
 
 __
 View this message in context: Dspace SRW/SRU search
 problem
 Sent from the DSpace - Tech mailing list archive at
 Nabble.com.
 
 
 
 --
 Simplify data backup and recovery for your virtual
 environment with vRanger.
 Installation's a snap, and flexible recovery options
 mean your data is safe,
 secure and there when you need it. Discover what all
 the cheering's about.
 Get your free trial download today.
 http://p.sf.net/sfu/quest-dev2dev2 
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https

[Dspace-tech] Dspace SRW/SRU search problem

2011-06-02 Thread Marianna Mühlhölzer
Dear all,

several month ego I installed the Dspace SRW/SRU Service for DSpace
1.6.2 and it worked without any problems. But after an update to DSpace
1.7.2 I get the following error message:

2011-06-02 19:07:36,365 DEBUG ORG.oclc.os.SRW.SRWDatabase @ query:
 64 63 2e 74 69 74 6c 65 20 3d 20 22 74 65 73 74  dc.title = test
 22   


2011-06-02 19:07:37,091 INFO  ORG.oclc.os.SRW.SRWDatabase @ 'dc.title =
test'== 9
2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ keeping
resultSet 'i28ewp' for 300 seconds
2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @
schemaName=info:srw/schema/1/dc-v1.1,
schemaID=info:srw/schema/1/dc-v1.1, 
sortKeys=
2011-06-02 19:07:37,092 DEBUG ORG.oclc.os.SRW.SRWDatabase @ making
RecordIterator, startPoint=1, schemaID=info:srw/schema/1/dc-v1.1
2011-06-02 19:07:37,113 INFO
ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @
lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1
f001f, startPoint=1, numRecs=9
2011-06-02 19:07:37,113 DEBUG ORG.oclc.os.SRW.SRWDatabase @ trying to
get 9 records starting with record 1 from a set of 9 records
2011-06-02 19:07:37,114 INFO
ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in hasNext:
whichRecord=0, numRecs=9, resultItems.le
ngth=9
2011-06-02 19:07:37,114 INFO
ORG.oclc.os.SRW.DSpaceLucene.LuceneRecordIterator @ in nextRecord:
lqr=ORG.oclc.os.SRW.DSpaceLucene.LuceneQueryResult@1f001f, startPoint=1,
whichRecord=0
2011-06-02 19:07:37,116 ERROR
gov.loc.www.zing.srw.srw_bindings.SRWSoapBindingImpl @
java.lang.NullPointerException
java.lang.NullPointerException
at
org.dspace.storage.rdbms.DatabaseManager.queryTable(DatabaseManager.java:220)
at org.dspace.content.Item
$MetadataCache.retrieveMetadata(Item.java:2710)
at org.dspace.content.Item$MetadataCache.get(Item.java:2643)
at org.dspace.content.Item.getMetadata(Item.java:2616)
at org.dspace.content.Item.getMetadata(Item.java:457)


It looks as if the number of the query results is retrieved and the
records cannot be fetched.  

Can anybody help me with this problem?

Thanks with regards,
Marianna Mühlhölzer


--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Dspace-SRW-SRU-search-problem-tp3568912p3568912.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 ___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech