Revision 8720
Added by ben leinfelder over 10 years ago
metacat-index/src/test/java/edu/ucsb/nceas/metacat/index/SolrIndexIT.java | ||
---|---|---|
221 | 221 |
String annotationResult = doQuery(solrIndex.getSolrServer(), "&fq=standard_sm:\"http://ecoinformatics.org/oboe/oboe.1.0/oboe-standards.owl#Gram\""); |
222 | 222 |
assertTrue(annotationResult.contains(pid.getValue())); |
223 | 223 |
assertTrue(annotationResult.contains("http://ecoinformatics.org/oboe/oboe.1.0/oboe-standards.owl#Gram")); |
224 |
|
|
225 |
// check that it contains the creator annotation as well |
|
226 |
assertTrue(annotationResult.contains("creator_sm")); |
|
227 |
assertTrue(annotationResult.contains("http://sandbox-1.orcid.org/0000-0003-2141-4459")); |
|
228 |
|
|
224 | 229 |
} |
225 | 230 |
|
226 | 231 |
/** |
metacat-index/src/test/resources/eml-example.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<eml:eml packageId="urn:uuid:606a19dd-b531-4bf4-b5a5-6d06c3d39098" system="knb" xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd"> <dataset> <title>test</title> |
|
3 |
<creator id="1365702846270"> <individualName><surName>test version1</surName> |
|
4 |
</individualName> |
|
5 |
</creator> |
|
6 |
<keywordSet><keyword>test</keyword> |
|
7 |
</keywordSet> |
|
8 |
<contact id="1365702851795"><individualName><surName>adf</surName> |
|
9 |
</individualName> |
|
10 |
</contact> |
|
11 |
</dataset> |
|
12 |
</eml:eml> |
|
2 |
<eml:eml packageId="urn:uuid:606a19dd-b531-4bf4-b5a5-6d06c3d39098" |
|
3 |
system="knb" xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd"> |
|
5 |
<dataset> |
|
6 |
<title>test</title> |
|
7 |
<creator id="1365702846270"> |
|
8 |
<individualName> |
|
9 |
<givenName>Matthew</givenName> |
|
10 |
<surName>Jones</surName> |
|
11 |
</individualName> |
|
12 |
</creator> |
|
13 |
<keywordSet> |
|
14 |
<keyword>test</keyword> |
|
15 |
<keyword>test version1</keyword> |
|
16 |
</keywordSet> |
|
17 |
<contact id="1365702851795"> |
|
18 |
<individualName> |
|
19 |
<surName>adf</surName> |
|
20 |
</individualName> |
|
21 |
</contact> |
|
22 |
</dataset> |
|
23 |
</eml:eml> |
metacat-index/src/test/resources/eml-updating-example.xml | ||
---|---|---|
1 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<eml:eml packageId="urn:uuid:606a19dd-b531-4bf4-b5a5-6d06c3d39099" system="knb" xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd"> <dataset> <title>Test version2</title> |
|
3 |
<creator id="1365702846270"> <individualName><surName>test</surName> |
|
4 |
</individualName> |
|
5 |
</creator> |
|
6 |
<keywordSet><keyword>test</keyword> |
|
7 |
</keywordSet> |
|
8 |
<contact id="1365702851795"><individualName><surName>test</surName> |
|
9 |
</individualName> |
|
10 |
</contact> |
|
11 |
</dataset> |
|
12 |
</eml:eml> |
|
2 |
<eml:eml packageId="urn:uuid:606a19dd-b531-4bf4-b5a5-6d06c3d39099" |
|
3 |
system="knb" xmlns:eml="eml://ecoinformatics.org/eml-2.1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
4 |
xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd"> |
|
5 |
<dataset> |
|
6 |
<title>Test version2</title> |
|
7 |
<creator id="1365702846270"> |
|
8 |
<individualName> |
|
9 |
<givenName>Matthew</givenName> |
|
10 |
<surName>Jones</surName> |
|
11 |
</individualName> |
|
12 |
</creator> |
|
13 |
<keywordSet> |
|
14 |
<keyword>test</keyword> |
|
15 |
<keyword>test version2</keyword> |
|
16 |
</keywordSet> |
|
17 |
<contact id="1365702851795"> |
|
18 |
<individualName> |
|
19 |
<surName>test</surName> |
|
20 |
</individualName> |
|
21 |
</contact> |
|
22 |
</dataset> |
|
23 |
</eml:eml> |
Also available in: Unified diff
use Matthew Jones for test creator since he has an ORCID in their staging environment.