added vocabularies

This commit is contained in:
Enrico Ottonello 2019-09-20 12:03:13 +02:00
parent f9005a2e87
commit bd69676fde
6 changed files with 179 additions and 1 deletions

View File

@ -4,7 +4,7 @@ container.port = 8280
services.is.store.database.bean = persistentExistDatabase
#services.is.store.database.bean = temporaryExistDatabase
dnet.data.path = /tmp/ariadneplus
dnet.data.path = /var/lib/dnet
dnet.bootstrap.schemas = classpath*:/eu/dnetlib/bootstrap/schemas/**/*.xsd
dnet.bootstrap.profiles = classpath*:/eu/dnetlib/bootstrap/profiles/**/*.xml

View File

@ -0,0 +1,24 @@
<RESOURCE_PROFILE>
<HEADER>
<RESOURCE_IDENTIFIER value="c2ccdae8-e089-4518-943c-a961ea28cb31_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ=="/>
<RESOURCE_TYPE value="VocabularyDSResourceType"/>
<RESOURCE_KIND value="VocabularyDSResources"/>
<RESOURCE_URI value=""/>
<DATE_OF_CREATION value="2017-01-17T10:46:36+01:00"/>
</HEADER>
<BODY>
<CONFIGURATION>
<VOCABULARY_NAME code="dnet:compatibilityLevel">dnet:compatibilityLevel</VOCABULARY_NAME>
<VOCABULARY_DESCRIPTION>API compatibility</VOCABULARY_DESCRIPTION>
<TERMS>
<TERM code="metadata" encoding="DNET" english_name="metadata" native_name="metadata">
<SYNONYMS/>
</TERM>
</TERMS>
</CONFIGURATION>
<STATUS>
<LAST_UPDATE value="2017-01-17T10:46:36+01:00"/>
</STATUS>
<SECURITY_PARAMETERS></SECURITY_PARAMETERS>
</BODY>
</RESOURCE_PROFILE>

View File

@ -0,0 +1,72 @@
<RESOURCE_PROFILE>
<HEADER>
<RESOURCE_IDENTIFIER value="c3f22ce3-f949-4f1f-9567-6652a167a0c1_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ=="/>
<RESOURCE_TYPE value="VocabularyDSResourceType"/>
<RESOURCE_KIND value="VocabularyDSResources"/>
<RESOURCE_URI value=""/>
<DATE_OF_CREATION value="2017-01-17T10:46:37+01:00"/>
</HEADER>
<BODY>
<CONFIGURATION>
<VOCABULARY_NAME code="dnet:protocols">dnet:protocols</VOCABULARY_NAME>
<VOCABULARY_DESCRIPTION>API protocols</VOCABULARY_DESCRIPTION>
<TERMS>
<TERM code="file" encoding="DNET" english_name="file" native_name="file">
<SYNONYMS/>
</TERM>
<TERM native_name="fileGzip" code="fileGzip" english_name="fileGzip" encoding="DNET">
<SYNONYMS/>
</TERM>
<TERM code="filesystem" encoding="DNET" english_name="filesystem" native_name="filesystem">
<SYNONYMS/>
</TERM>
<TERM code="ftp" encoding="DNET" english_name="ftp" native_name="ftp">
<SYNONYMS/>
</TERM>
<TERM native_name="sftp" code="sftp" english_name="sftp" encoding="DNET">
<SYNONYMS/>
</TERM>
<TERM native_name="sftpPubKeyAuthentication" code="sftpPubKeyAuthentication" english_name="sftpPubKeyAuthentication" encoding="DNET">
<SYNONYMS/>
</TERM>
<TERM code="http" encoding="DNET" english_name="http" native_name="http">
<SYNONYMS/>
</TERM>
<TERM code="oai" encoding="DNET" english_name="oai" native_name="oai">
<SYNONYMS/>
</TERM>
<TERM code="fileCSV" encoding="DNET" english_name="fileCSV" native_name="fileCSV">
<SYNONYMS/>
</TERM>
<TERM code="httpCSV" encoding="DNET" english_name="httpCSV" native_name="httpCSV">
<SYNONYMS/>
</TERM>
<TERM code="httpSimple" encoding="DNET" english_name="httpSimple" native_name="httpSimple">
<SYNONYMS/>
</TERM>
<TERM code="files_from_mdstore" encoding="DNET" english_name="files_from_mdstore" native_name="files_from_mdstore">
<SYNONYMS/>
</TERM>
<TERM code="files_from_metadata" encoding="DNET" english_name="files_from_metadata" native_name="files_from_metadata">
<SYNONYMS/>
</TERM>
<TERM code="httpList" encoding="DNET" english_name="httpList" native_name="httpList">
<SYNONYMS/>
</TERM>
<TERM code="zip" encoding="DNET" english_name="zip" native_name="zip">
<SYNONYMS/>
</TERM>
<TERM code="ads" encoding="ARIADNE" english_name="ads" native_name="ads">
<SYNONYMS/>
</TERM>
<TERM code="UNKNOWN" encoding="DNET" english_name="UNKNOWN" native_name="UNKNOWN">
<SYNONYMS/>
</TERM>
</TERMS>
</CONFIGURATION>
<STATUS>
<LAST_UPDATE value="2017-01-17T10:46:37+01:00"/>
</STATUS>
<SECURITY_PARAMETERS></SECURITY_PARAMETERS>
</BODY>
</RESOURCE_PROFILE>

View File

@ -0,0 +1,24 @@
<RESOURCE_PROFILE>
<HEADER>
<RESOURCE_IDENTIFIER value="81c91134-a139-48e5-944b-58d4c11b4ca1_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ=="/>
<RESOURCE_TYPE value="VocabularyDSResourceType"/>
<RESOURCE_KIND value="VocabularyDSResources"/>
<RESOURCE_URI value=""/>
<DATE_OF_CREATION value="2017-01-17T10:46:36Z"/>
</HEADER>
<BODY>
<CONFIGURATION>
<VOCABULARY_NAME code="dnet:content_description_typologies">D-Net Content Description Typologies</VOCABULARY_NAME>
<VOCABULARY_DESCRIPTION>D-Net Content Description Typologies</VOCABULARY_DESCRIPTION>
<TERMS>
<TERM code="metadata" encoding="DNET" english_name="metadata" native_name="metadata">
<SYNONYMS/>
</TERM>
</TERMS>
</CONFIGURATION>
<STATUS>
<LAST_UPDATE value="2017-01-17T10:46:36Z"/>
</STATUS>
<SECURITY_PARAMETERS></SECURITY_PARAMETERS>
</BODY>
</RESOURCE_PROFILE>

View File

@ -0,0 +1,25 @@
<RESOURCE_PROFILE>
<HEADER>
<RESOURCE_IDENTIFIER
value="b3304b89-a3d3-4252-ac48-50cc82c545c6_Vm9jYWJ1bGFyeURTUmVzb3VyY2VzL1ZvY2FidWxhcnlEU1Jlc291cmNlVHlwZQ==" />
<RESOURCE_TYPE value="VocabularyDSResourceType" />
<RESOURCE_KIND value="VocabularyDSResources" />
<RESOURCE_URI value="" />
<DATE_OF_CREATION value="2017-01-17T17:00:00.0Z"/>
</HEADER>
<BODY>
<CONFIGURATION>
<VOCABULARY_NAME code="dnet:datasource_typologies">Datasource typologies</VOCABULARY_NAME>
<VOCABULARY_DESCRIPTION>D-Net datasource typologies</VOCABULARY_DESCRIPTION>
<TERMS>
<TERM english_name="Content Provider" native_name="Content Provider" encoding="DNET" code="dnet:repository">
<SYNONYMS />
</TERM>
</TERMS>
</CONFIGURATION>
<STATUS>
<LAST_UPDATE value="2017-01-17T17:00:00.0Z"/>
</STATUS>
<SECURITY_PARAMETERS />
</BODY>
</RESOURCE_PROFILE>

View File

@ -0,0 +1,33 @@
package eu.dnetlib.data.collector.plugins.ariadneplus.ads;
import java.util.List;
import java.util.stream.Stream;
import org.junit.Assert;
import org.junit.Test;
import com.google.common.base.Function;
import com.google.common.collect.Iterables;
public class MultipleIteratorTest {
@Test
public void mergeIterators() {
final List<String> urls = null;
Iterables.concat(Iterables.transform(urls, new Function<String, Iterable<String>>() {
@Override
public Iterable<String> apply(final String url) {
Stream<String> a = Stream.of("1", "2");
try {
return null;
} catch (final Exception e) {
throw new RuntimeException(String.format("unable to iterate over %s", url), e);
}
}
})).iterator();
Assert.assertNotNull("");
}
}