[Dspace-tech] dspace-rest api and dSpace 3.0

2012-12-17 Thread Wesley Alan Wright
Hello, World:

I have a bibliographic application written in php that leverages the 
dspace-rest api available here

https://github.com/hedtek/dspace-rest

and our oh-so-out-of-date dSpace 1.6.2 installation.

With the advent of dSpace 3.x, I figure maybe it's time to upgrade to at lease 
1.8.x -- but I don't want to break my php application.

So:

o will the hedtek dspace-rest API work for dSpace 1.X, where X  6?
o is there a better choice? For 1.x or 3.x ?
o has an 'official' API yet been bundled with dSpace 3.0 ?

Google shows several dspace-rest api projects, but offers no assistance in 
choosing

 
---
| Wesley Alan Wright mailto:wesley.wri...@uvm.edu   |
| Center for Teaching and Learning  __0__ |
| Room 407 Lafayette Building  / \ | \|
| University of Vermont  \77  |
| Burlington, Vermont 05405-0160 USA. \\  http://www.uvm.edu/skivt-l  |
| Voice: 802-656-1254  vv |
| aim:goim?screenname=maddogskideath  http://www.uvm.edu/~waw/|
---






--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] REST query Syntax

2012-05-09 Thread Wesley Alan Wright
This works for me

Simple 

search.xml?query=(carbon)

Simple scoped

search.xml?query=(abstract:carbon)


Advanced


search.xml?query=((abstract:carbon)%20AND%20(author:smith))collection=49idOnly=falsesort=id_limit=2000_perpage=2000

sort doesn't seem to work, so I sort after I get back results. I am accessing 
our REST instance via PHP code 

The response you got back below is the I hear you but search term not found 
response





On Mar 20, 2012, at 1:06 PM, Milne, Mary wrote:

 Thanks mark for your response – we have discovery enabled so will the lucene 
 searches work and are the collection or community param required? Should I 
 create an instance that has SearchArtifact etc re-enabled?
 
 For instance
 
 /dspace-rest-1.8.1/search?query=flood
 /dspace-rest-1.8.1/search?query={flood}
 /dspace-rest-1.8.1/search?query=floodcollection=3
 
 The only thing that gets any kind of response is : 
 /dspace-rest-1.8.1/search.xml?query={flood}
 
 search_collection entityPrefix=search
 search type=bean size=9
 id type=number0/id
 name/
 resultHandles type=collection size=0/resultHandles
 resultIDs type=collection size=0/resultIDs
 resultTypes type=collection size=0/resultTypes
 resultsCount type=number-1/resultsCount
 entityReference/search/0/entityReference
 entityURLhttp://localhost:8080/dspace-rest-1.8.1/search/0/entityURL
 entityId0/entityId
 /search
 /search_collection
 
 Although I’ve got it running on 8090 but this may be hardwired somewhere and 
 a red herring.
 
 Thanks in advance for any light shed.
 
 Mary
 From: mdigg...@gmail.com [mailto:mdigg...@gmail.com] On Behalf Of Mark Diggory
 Sent: 17 March 2012 00:37
 To: Milne, Mary
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] REST query Syntax
 
 It's more than likely going to be lucene syntax for the moment in the query 
 field. This going to either be free text, Boolean operators or fielded 
 searches like title:foo AND author:bar
 
 This is old legacy search, not discovery, you'd get actuall metadata field 
 search and facetting out of discovery if we ever create an API for it, which 
 has come up a couple times in dialog.
 
 query=querycommunity=id or collection=I'd
 
 Best,
 Mark
 
 On Friday, March 16, 2012, Milne, Mary mary.mi...@bl.uk wrote:
 Hello
 
 
 
 I am working on a project using the REST API to enable some search 
 interoperability with Drupal. I’ve had no problems installing and setting up 
 the webapp and issuing requests such as:
 
 
 
 /dspace-rest-1.8.1/collections.xml
 
 /dspace-rest-1.8.1/items/60.xml
 
 
 
 However what I need is to run the search query and I don’t know whether I 
 can’t crack the syntax or whether my expectation that I should see something 
 in the browser is misplaced or if I’m somehow not referencing the field 
 names correctly. If I run the above with the .xml I see nothing but adding 
 .xml to any of my attempts seems to do nothing either. I have tried every 
 combination of brackets, slashes, ? and  but none have worked although only 
 a few seem to have actively failed. So could someone please put me out of my 
 misery and how me how to do a search something like:
 
 
 
 dc.title = flood and water
 
 text = climate
 
 
 
 
 
 Many Thanks
 
 Mary
 
 
 
 
 
 
 
 Mary Milne BSc
 
 Solutions Architect
 
 British Library
 
 
 
 --
 
 Mark Diggory (Schedule a Meeting)
 2888 Loker Avenue East, Suite 305, Carlsbad, CA. 92010
 Esperantolaan 4, Heverlee 3001, Belgium
 http://www.atmire.com
 
 
 --
 This SF email is sponsosred by:
 Try Windows Azure free for 90 days Click Here 
 http://p.sf.net/sfu/sfd2d-msazure___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

---
| Wesley Alan Wright mailto:wesley.wri...@uvm.edu   |
| Center for Teaching and Learning  __0__ |
| Room 407 Lafayette Building  / \ | \|
| University of Vermont  \77  |
| Burlington, Vermont 05405-0160 USA. \\  http://www.uvm.edu/skivt-l  |
| Voice: 802-656-1254  vv |
| aim:goim?screenname=maddogskideath  http://www.uvm.edu/~waw/|
---






--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech

Re: [Dspace-tech] REST API query, sort

2012-03-15 Thread Wesley Alan Wright

On Mar 14, 2012, at 9:42 PM, maurice.bouch...@simmons.edu wrote:

 Wesley,
 For problem 1, what are you seeing in your DSpace logs?

nada

  In your  
 Catalina logs? Have you checked them for SQL or database errors?
 

level 3 of depth 2
level 3 of depth 2
creating community 2
WARN Failure processing entity request (/search.xml): null 
:java.lang.NullPointerException


---
| Wesley Alan Wright mailto:wesley.wri...@uvm.edu   |
| Center for Teaching and Learning  __0__ |
| Room 407 Lafayette Building  / \ | \|
| University of Vermont  \77  |
| Burlington, Vermont 05405-0160 USA. \\  http://www.uvm.edu/skivt-l  |
| Voice: 802-656-1254  vv |
| aim:goim?screenname=maddogskideath  http://www.uvm.edu/~waw/|
---






--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] REST API query, sort

2012-03-14 Thread Wesley Alan Wright
I'm running a 1.6.2 Dspace server at

http://badger.uvm.edu/dspace

After a days hard work, I was able to get the REST API installed at

http://badger.uvm.edu/dspace-rest/

Problem 1:

This works (I get an XML file)

http://badger.uvm.edu/dspace-rest/search.xml?query=foobar

But not this (I get an internal server error)

http://badger.uvm.edu/dspace-rest/search.xml?query=wesley

The difference: wesley exists as an author in our Dspace collection


http://badger.uvm.edu/dspace/search?scope=%2Fquery=wesleyrpp=10sort_by=0order=DESCsubmit=Go

foobar does not


http://badger.uvm.edu/dspace/search?scope=%2Fquery=foobarrpp=10sort_by=0order=DESCsubmit=Go

Problem 2:

order doesn't order results, or at least not by title

http://badger.uvm.edu/dspace-rest/collections/1.xml?_sort=name

But it is doing something -- results are different than these

http://badger.uvm.edu/dspace-rest/collections/1.xml

I note that name is ambiguous in the xml


---
| Wesley Alan Wright mailto:wesley.wri...@uvm.edu   |
| Center for Teaching and Learning  __0__ |
| Room 407 Lafayette Building  / \ | \|
| University of Vermont  \77  |
| Burlington, Vermont 05405-0160 USA. \\  http://www.uvm.edu/skivt-l  |
| Voice: 802-656-1254  vv |
| aim:goim?screenname=maddogskideath  http://www.uvm.edu/~waw/|
---






--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech