Project

General

Profile

« Previous | Next » 

Revision 53756

Testing software from biotools

View differences:

modules/dnet-mapreduce-jobs/branches/master/src/test/java/eu/dnetlib/data/transform/XsltRowTransformerFactoryTest.java
37 37
import org.junit.Ignore;
38 38
import org.junit.Test;
39 39
import org.springframework.core.io.ByteArrayResource;
40
import org.springframework.core.io.ClassPathResource;
41 40
import org.springframework.core.io.Resource;
42 41

  
43 42
import static org.junit.Assert.*;
......
446 445
	}
447 446

  
448 447
	@Test
448
	public void testParseSoftwareBiotool() throws Exception {
449
		final List<Row> rows = Lists.newArrayList();
450
		rows.addAll(asRows(loadFromTransformationProfile("odf2hbase.xml"), load("biotoolSw.xml")));
451
		printAll(mapAll(buildTable(rows)));
452
	}
453

  
454
	@Test
449 455
	public void testParseOafWithExternalRef() throws Exception {
450 456
		final List<Row> rows = Lists.newArrayList();
451 457
		rows.addAll(asRows(loadFromTransformationProfile("oaf2hbase.xml"), load("oafWithExternalReference.xml")));
modules/dnet-mapreduce-jobs/branches/master/src/test/resources/eu/dnetlib/data/transform/biotoolSw.xml
1
<?xml version="1.0" encoding="UTF-8"?>
2
<record xmlns:datacite="http://datacite.org/schema/kernel-4"
3
        xmlns:dc="http://purl.org/dc/elements/1.1/"
4
        xmlns:dr="http://www.driver-repository.eu/namespace/dr"
5
        xmlns:oaf="http://namespace.openaire.eu/oaf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6
	<oai:header xmlns="http://namespace.openaire.eu/"
7
	            xmlns:dri="http://www.driver-repository.eu/namespace/dri"
8
	            xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:prov="http://www.openarchives.org/OAI/2.0/provenance">
9
		<dri:objIdentifier>__bioTools__::001a7c03357f7060315bfe53ab8d2b05</dri:objIdentifier>
10
		<dri:recordIdentifier>Scoary</dri:recordIdentifier>
11
		<dri:dateOfCollection>2018-09-27T08:50:11.429Z</dri:dateOfCollection>
12
		<oaf:datasourceprefix>__bioTools__</oaf:datasourceprefix>
13
		<dr:dateOfTransformation>2018-11-13T18:01:16.337Z</dr:dateOfTransformation>
14
	</oai:header>
15
	<metadata>
16
		<datacite:resource>
17
			<dr:CobjCategory type="software">0029</dr:CobjCategory>
18
			<oaf:concept id="elixir-gr"/>
19
			<datacite:resourceType resourceTypeGeneral="Software">Command-line tool</datacite:resourceType>
20
			<datacite:format>Python</datacite:format>
21
			<oaf:accessrights>OPEN SOURCE</oaf:accessrights>
22
			<oaf:accessrights>UNKNOWN</oaf:accessrights>
23
			<oaf:license>GPL-3.0</oaf:license>
24
			<oaf:hostedBy id="rest________::bioTools" name="bio.tools"/>
25
			<oaf:collectedFrom id="rest________::bioTools" name="bio.tools"/>
26
			<datacite:publisher>bio.tools</datacite:publisher>
27
			<datacite:alternateIdentifier alternateIdentifierType="LandingPage">https://bio.tools/Scoary</datacite:alternateIdentifier>
28
			<datacite:relatedIdentifier relatedIdentifierType="URL" relationType="IsDocumentedBy">https://github.com/AdmiralenOla/Scoary/blob/master/LICENSE</datacite:relatedIdentifier>
29
			<datacite:alternateIdentifier alternateIdentifierType="DistributionLocation">https://github.com/AdmiralenOla/Scoary</datacite:alternateIdentifier>
30
			<datacite:alternateIdentifier alternateIdentifierType="local accession id">Scoary</datacite:alternateIdentifier>
31
			<oaf:identifier>Scoary</oaf:identifier>
32
			<datacite:title>Scoary</datacite:title>
33
			<datacite:version>1.6.11</datacite:version>
34
			<datacite:creator>
35
				<datacite:creatorName>Brynildsrud, Ola</datacite:creatorName>
36
				<datacite:givenName>Ola</datacite:givenName>
37
				<datacite:familyName>Brynildsrud</datacite:familyName>
38
			</datacite:creator>
39
			<contributors>
40
				<contributor contributorType="ContactPerson">
41
					<contributorName>Starr, Joan</contributorName>
42
					<givenName>Joan</givenName>
43
					<familyName>Starr</familyName>
44
					<nameIdentifier schemeURI="http://orcid.org/" nameIdentifierScheme="ORCID">0000-0002-7285-027X</nameIdentifier>
45
					<affiliation>California Digital Library</affiliation>
46
				</contributor>
47
			</contributors>
48
			<datacite:relatedIdentifier relatedIdentifierType="DOI" relationType="isCitedBy">10.1186/s13059-016-1108-8</datacite:relatedIdentifier>
49
			<datacite:description descriptionType="Abstract">Pan-genome wide association studies and  is designed to take the gene_presence_absence.csv file from Roary as well as a traits file created by the user and calculate the assocations between all genes in the accessory genome (all genes that are present in i genomes where 1 &lt; i &lt; N) and the traits. It reports a list of genes sorted by strength of association per trait.</datacite:description>
50
			<description descriptionType="Abstract">
51
				Computation of Fast Fourier Transform
52
			</description>
53
			<datacite:description descriptionType="TechnicalInfo">Linux</datacite:description>
54
			<datacite:description descriptionType="TechnicalInfo">Scoary correlates the genes of an accessory genome to an observed phenotype (e.g. resistance towards a certain antibiotic compound, a particular pathotype etc.). It is thus a quick way of establishing possible genetic mechanisms of an expressed trait, not unlike a GWAS, but with the entire pan-genome rather than a core set of mutations. Scoary works on both bacteria, Archea and (in theory at least) viruses.</datacite:description>
55
			<datacite:subject schemeURI="http://edamontology.org" subjectScheme="EDAM Ontology">topic_0625 Genotype and phenotype</datacite:subject>
56
			<oaf:dateAccepted>2016-09-12</oaf:dateAccepted>
57
		</datacite:resource>
58
	</metadata>
59
	<about xmlns:dri="http://www.driver-repository.eu/namespace/dri"
60
	       xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:prov="http://www.openarchives.org/OAI/2.0/provenance">
61
		<provenance xmlns="http://www.openarchives.org/OAI/2.0/provenance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/provenance http://www.openarchives.org/OAI/2.0/provenance.xsd">
62
			<originDescription altered="true" harvestDate="2018-09-27T08:50:11.429Z">
63
				<baseURL>https://bio.tools/api/tool</baseURL>
64
				<identifier/>
65
				<datestamp/>
66
				<metadataNamespace/>
67
			</originDescription>
68
		</provenance>
69
		<oaf:datainfo>
70
			<oaf:inferred>false</oaf:inferred>
71
			<oaf:deletedbyinference>false</oaf:deletedbyinference>
72
			<oaf:trust>0.9</oaf:trust>
73
			<oaf:inferenceprovenance/>
74
			<oaf:provenanceaction classid="sysimport:crosswalk:repository"
75
			                      classname="sysimport:crosswalk:repository"
76
			                      schemeid="dnet:provenanceActions" schemename="dnet:provenanceActions"/>
77
		</oaf:datainfo>
78
	</about>
79
</record>
80

  

Also available in: Unified diff