talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

Re: [Talk] A few questions about CollectionSpace

AR
Aron Roberts
Thu, Sep 20, 2012 10:28 PM

Sandra,

From memory (with corrections welcomed), I believe the process is:

  1. Create your Person records.
  2. Find the refName values within those Person records.
  3. Store those refName values - which are essentially references to
    those Person records - in the appropriate fields in your
    CollectionObject records.

You should then see those Person records appear in the Terms Used
area of your CollectionObject records, and be able to click their
links, to 'pivot' to those records.

Aron

On Thu, Sep 20, 2012 at 3:04 PM, Sandra Tsai sandrayun.tsai@gmail.com wrote:

Thanks Chris and Aron!

We are using CollectionSpace version 2.5.

We could make the relationship between acquisitions to collection objects,
but we don't know how to use related terms. For example, we want to use
terms from Person records into CollectionObject records.

Sandra

2012/9/20 Aron Roberts aron@socrates.berkeley.edu

To follow up on Chris's excellent note, cURL samples for using the
REST APIs (as contrasted with the Imports service) to import data, can
be found here:

http://wiki.collectionspace.org/display/collectionspace/Using+cURL+as+a+Client+to+CollectionSpace+Services

If you're interested in sample payloads for the Imports service,
specifically, you can find several in this set of test payloads:

https://github.com/collectionspace/services/tree/master/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports

and the cURL commands for the Imports service are listed here:

http://wiki.collectionspace.org/display/collectionspace/Imports+Service+Home#ImportsServiceHome-Sendingtherequest%3A

Aron

On Thu, Sep 20, 2012 at 8:26 AM, Chris Hoffman
chris.hoffman@berkeley.edu wrote:

Hi Sandra,

What version of CollectionSpace are you now using?

The XML schema for relationship records does depend on what you are
trying
to relate.  For example, is this to relate acquisitions to collection
objects?

Just to make sure I understand, when you say "rest import", you mean you
are
bypassing the import service, and intend to add records using the REST
API
to create records one at a time. Is that right?  (The "import service"
uses
the XML schema that has the <import> element.  The REST API uses
payloads
that have the <document> element at the beginning.)

Thanks,
Chris

On Sep 19, 2012, at 3:12 PM, Sandra Tsai wrote:

Hi CollectionSpacers,

We use CollectionSpace version 2.5. We have a a few questions below.

  1. does anyone have instructions and/or a sample XML rest file for
    importing
    associations?

  2. does anyone have sample curl statements to use for rest import from
    the
    command line?

Thanks so much!

Sandra Tsai


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org


Talk mailing list
Talk@lists.collectionspace.org

http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org

Sandra, From memory (with corrections welcomed), I *believe* the process is: 1. Create your Person records. 2. Find the refName values within those Person records. 3. Store those refName values - which are essentially references to those Person records - in the appropriate fields in your CollectionObject records. You should then see those Person records appear in the Terms Used area of your CollectionObject records, and be able to click their links, to 'pivot' to those records. Aron On Thu, Sep 20, 2012 at 3:04 PM, Sandra Tsai <sandrayun.tsai@gmail.com> wrote: > Thanks Chris and Aron! > > We are using CollectionSpace version 2.5. > > We could make the relationship between acquisitions to collection objects, > but we don't know how to use related terms. For example, we want to use > terms from Person records into CollectionObject records. > > > Sandra > > 2012/9/20 Aron Roberts <aron@socrates.berkeley.edu> >> >> To follow up on Chris's excellent note, cURL samples for using the >> REST APIs (as contrasted with the Imports service) to import data, can >> be found here: >> >> >> http://wiki.collectionspace.org/display/collectionspace/Using+cURL+as+a+Client+to+CollectionSpace+Services >> >> If you're interested in sample payloads for the Imports service, >> specifically, you can find several in this set of test payloads: >> >> >> https://github.com/collectionspace/services/tree/master/services/IntegrationTests/src/test/resources/test-data/xmlreplay/imports >> >> and the cURL commands for the Imports service are listed here: >> >> >> http://wiki.collectionspace.org/display/collectionspace/Imports+Service+Home#ImportsServiceHome-Sendingtherequest%3A >> >> Aron >> >> On Thu, Sep 20, 2012 at 8:26 AM, Chris Hoffman >> <chris.hoffman@berkeley.edu> wrote: >> > Hi Sandra, >> > >> > What version of CollectionSpace are you now using? >> > >> > The XML schema for relationship records does depend on what you are >> > trying >> > to relate. For example, is this to relate acquisitions to collection >> > objects? >> > >> > Just to make sure I understand, when you say "rest import", you mean you >> > are >> > bypassing the import service, and intend to add records using the REST >> > API >> > to create records one at a time. Is that right? (The "import service" >> > uses >> > the XML schema that has the <import> element. The REST API uses >> > payloads >> > that have the <document> element at the beginning.) >> > >> > Thanks, >> > Chris >> > >> > >> > >> > On Sep 19, 2012, at 3:12 PM, Sandra Tsai wrote: >> > >> > Hi CollectionSpacers, >> > >> > We use CollectionSpace version 2.5. We have a a few questions below. >> > >> > 1) does anyone have instructions and/or a sample XML rest file for >> > importing >> > associations? >> > >> > 2) does anyone have sample curl statements to use for rest import from >> > the >> > command line? >> > >> > Thanks so much! >> > >> > >> > Sandra Tsai >> > >> > >> > _______________________________________________ >> > Talk mailing list >> > Talk@lists.collectionspace.org >> > >> > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >> > >> > >> > >> > _______________________________________________ >> > Talk mailing list >> > Talk@lists.collectionspace.org >> > >> > http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org >> > > >