WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org
View
all threads
ST
Sandra Tsai
Wed, Sep 19, 2012 10:12 PM
Hi CollectionSpacers,
We use CollectionSpace version 2.5. We have a a few questions below.
-
does anyone have instructions and/or a sample XML rest file for
importing associations?
-
does anyone have sample curl statements to use for rest import from the
command line?
Thanks so much!
Sandra Tsai
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
CH
Chris Hoffman
Thu, Sep 20, 2012 3:26 PM
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 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
AR
Aron Roberts
Thu, Sep 20, 2012 3:40 PM
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.
-
does anyone have instructions and/or a sample XML rest file for importing
associations?
-
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
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
>
ST
Sandra Tsai
Thu, Sep 20, 2012 10:04 PM
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
Hi Sandra,
What version of CollectionSpace are you now using?
The XML schema for relationship records does depend on what you are
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
bypassing the import service, and intend to add records using the REST
to create records one at a time. Is that right? (The "import service"
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.
- does anyone have instructions and/or a sample XML rest file for
associations?
- does anyone have sample curl statements to use for rest import from
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
> >
>
PS
Patrick Schmitz
Fri, Sep 21, 2012 3:57 PM
You need not import relations for these. They are computed/inferred when you
use a term in a record.
Patrick
From: talk-bounces@lists.collectionspace.org
[mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Sandra Tsai
Sent: Thursday, September 20, 2012 3:05 PM
To: Aron Roberts
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] A few questions about CollectionSpace
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+Clie
nt+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/Integration
Tests/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
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"
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.
- does anyone have instructions and/or a sample XML rest file for
associations?
- 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
You need not import relations for these. They are computed/inferred when you
use a term in a record.
Patrick
_____
From: talk-bounces@lists.collectionspace.org
[mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Sandra Tsai
Sent: Thursday, September 20, 2012 3:05 PM
To: Aron Roberts
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] A few questions about CollectionSpace
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+Clie
nt+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/Integration
Tests/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
>
CH
Chris Hoffman
Fri, Sep 21, 2012 6:54 PM
Sandra,
Patrick is (of course) correct. You only need to import the refnames for the persons in the collection object payload. It's just another field, but the value you supply must be the person's refname value that you created (or that was created during data entry). The person refname is in person_common, and it's just called refname.
Chris
On Sep 21, 2012, at 8:57 AM, Patrick Schmitz wrote:
You need not import relations for these. They are computed/inferred when you use a term in a record.
Patrick
From: talk-bounces@lists.collectionspace.org [mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Sandra Tsai
Sent: Thursday, September 20, 2012 3:05 PM
To: Aron Roberts
Cc: talk@lists.collectionspace.org
Subject: Re: [Talk] A few questions about CollectionSpace
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.
-
does anyone have instructions and/or a sample XML rest file for importing
associations?
-
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,
Patrick is (of course) correct. You only need to import the refnames for the persons in the collection object payload. It's just another field, but the value you supply must be the person's refname value that you created (or that was created during data entry). The person refname is in person_common, and it's just called refname.
Chris
On Sep 21, 2012, at 8:57 AM, Patrick Schmitz wrote:
> You need not import relations for these. They are computed/inferred when you use a term in a record.
>
> Patrick
>
> From: talk-bounces@lists.collectionspace.org [mailto:talk-bounces@lists.collectionspace.org] On Behalf Of Sandra Tsai
> Sent: Thursday, September 20, 2012 3:05 PM
> To: Aron Roberts
> Cc: talk@lists.collectionspace.org
> Subject: Re: [Talk] A few questions about CollectionSpace
>
> 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
> >
>
> _______________________________________________
> Talk mailing list
> Talk@lists.collectionspace.org
> http://lists.collectionspace.org/mailman/listinfo/talk_lists.collectionspace.org