Revision 52280
Added by Alessia Bardi almost 6 years ago
VirtuosoReadAPIIntegrationTest.java | ||
---|---|---|
36 | 36 |
|
37 | 37 |
@Test |
38 | 38 |
public void testVolatileDataset1() throws IOException, TemplateException, ParthenosPublisherException { |
39 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Dataset/CoCoON%20Dataset", CRMpe.PE18_Dataset.getLocalName(), System.out);
|
|
39 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Dataset/CoCoON%20Dataset", CRMpe.PE18_Dataset.getLocalName(), System.out); |
|
40 | 40 |
} |
41 | 41 |
|
42 | 42 |
@Test |
43 | 43 |
public void testSoftware() throws IOException, TemplateException, ParthenosPublisherException { |
44 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Software/ACDM", CRMdig.D14_Software.getLocalName(), System.out);
|
|
44 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Software/ACDM", CRMdig.D14_Software.getLocalName(), System.out); |
|
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
@Test |
48 | 48 |
public void testRIConsortium() throws IOException, TemplateException, ParthenosPublisherException { |
49 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Actor/Cendari%20Consortium", CRM.E39_Actor.getLocalName(), System.out);
|
|
49 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Actor/Cendari%20Consortium", CRM.E39_Actor.getLocalName(), System.out); |
|
50 | 50 |
} |
51 | 51 |
|
52 | 52 |
@Test |
53 | 53 |
public void testPerson() throws IOException, TemplateException, ParthenosPublisherException { |
54 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Actor/Eleni%20Vernardaki", CRM.E39_Actor.getLocalName(), System.out);
|
|
54 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Actor/Eleni%20Vernardaki", CRM.E39_Actor.getLocalName(), System.out); |
|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
@Test |
58 | 58 |
public void testService() throws IOException, TemplateException, ParthenosPublisherException { |
59 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Service/Isidore", CRMpe.PE1_Service.getLocalName(), System.out);
|
|
59 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Service/Isidore", CRMpe.PE1_Service.getLocalName(), System.out); |
|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
@Test |
63 | 63 |
public void testService2() throws IOException, TemplateException, ParthenosPublisherException { |
64 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Service/LRE%20Map", CRMpe.PE1_Service.getLocalName(), System.out);
|
|
64 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Service/LRE%20Map", CRMpe.PE1_Service.getLocalName(), System.out); |
|
65 | 65 |
} |
66 | 66 |
|
67 | 67 |
@Test |
68 | 68 |
public void testCurationPlan() throws IOException, TemplateException, ParthenosPublisherException { |
69 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/thing/provided%20by%20DCU", CRMpe.PE28_Curation_Plan.getLocalName(), System.out);
|
|
69 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/thing/provided%20by%20DCU", CRMpe.PE28_Curation_Plan.getLocalName(), System.out); |
|
70 | 70 |
} |
71 | 71 |
|
72 | 72 |
@Test |
73 | 73 |
public void testProject() throws IOException, TemplateException, ParthenosPublisherException { |
74 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/Parthenos/REG/Project/Cendari", CRMpe.PE35_Project.getLocalName(), System.out);
|
|
74 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/Parthenos/REG/Project/Cendari", CRMpe.PE35_Project.getLocalName(), System.out); |
|
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
@Test |
78 | 78 |
public void testCollection() throws IOException, TemplateException, ParthenosPublisherException { |
79 |
virtuosoReadAPI.getSubjectForJRR("http://parthenos.d4science.org/handle/EHRI/PORTAL/Thing/164", CRM.E78_Collection.getLocalName(), System.out);
|
|
79 |
virtuosoReadAPI.getSubject("http://parthenos.d4science.org/handle/EHRI/PORTAL/Thing/164", CRM.E78_Collection.getLocalName(), System.out); |
|
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
@Test |
Also available in: Unified diff
Removed/deprecated unused methods