diff --git a/cv-mapping-rules/pom.xml b/cv-mapping-rules/pom.xml deleted file mode 100644 index a3cffbd..0000000 --- a/cv-mapping-rules/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - psidev.psi.tools - psi-tools-build - pom - 2 - PSI :: Tools - http://www.psidev.info - Base build file - - - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/current - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/current - http://svn.code.sf.net/p/psidev/svn/psi/tools/current/ - - - - cv-rule-reader - ontology-manager - validator - xxindex - master-pom - ontology-config-reader - object-rule-reader - - - - - ebi-repo - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo - - - - ebi-repo-snapshots - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo-snapshots - - - - diff --git a/cv-rule-reader/pom.xml b/cv-rule-reader/pom.xml index 840205b..23ef633 100644 --- a/cv-rule-reader/pom.xml +++ b/cv-rule-reader/pom.xml @@ -1,30 +1,21 @@ - - + 4.0.0 psidev.psi.tools master-pom - 4 + 2.0.7 - psidev.psi.tools cv-rule-reader + PSI :: Tools :: CV Rule Reader jar - 2.0.6-SNAPSHOT - PSI :: Tools :: CV Rule Reader The library provides a cv rule reader for the cv rule configuration XML file that is used with the validator. - - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/cv-rule-reader/trunk - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/cv-rule-reader/trunk - http://svn.code.sf.net/p/psidev/svn/psi/tools/cv-rule-reader/trunk - - @@ -45,57 +36,35 @@ - - - - maven-assembly-plugin - - ${descriptor} - - - - - junit - junit - 4.3.1 - test - - commons-logging commons-logging - 1.1 com.sun.xml.bind jaxb-impl - 2.1.3 stax stax - 1.2.0 javax.xml.bind jaxb-api - 2.1 + + + + + junit + junit - - - intact.nexus - IntAct Nexus - http://www.ebi.ac.uk/intact/maven/nexus/content/groups/public/ - - - diff --git a/object-rule-reader/pom.xml b/object-rule-reader/pom.xml index d77b1d0..923ddce 100644 --- a/object-rule-reader/pom.xml +++ b/object-rule-reader/pom.xml @@ -1,30 +1,21 @@ - - + 4.0.0 psidev.psi.tools master-pom - 4 + 2.0.7 - psidev.psi.tools object-rule-reader + PSI :: Tools :: Object Rule Reader jar - 2.0.6-SNAPSHOT - PSI :: Tools :: Object Rule Reader The library provides an object rule configuration reader. - - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/object-rule-reader/trunk - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/object-rule-reader/trunk - https://svn.code.sf.net/p/psidev/svn/psi/tools/object-rule-reader/trunk - - @@ -32,13 +23,6 @@ com.sun.tools.xjc.maven2 maven-jaxb-plugin 1.0 - - - - generate - - - psidev.psi.tools.objectRuleReader.mapping.jaxb @@ -47,58 +31,43 @@ true true - - - - - maven-assembly-plugin - - ${descriptor} - + + + + generate + + + - - - junit - junit - 4.3.1 - test - - commons-logging commons-logging - 1.1 com.sun.xml.bind jaxb-impl - 2.1.3 stax stax - 1.2.0 javax.xml.bind jaxb-api - 2.1 + + + + + junit + junit - - - intact.nexus - IntAct Nexus - http://www.ebi.ac.uk/intact/maven/nexus/content/groups/public/ - - - diff --git a/ontology-config-reader/pom.xml b/ontology-config-reader/pom.xml index 9416347..e84d3de 100644 --- a/ontology-config-reader/pom.xml +++ b/ontology-config-reader/pom.xml @@ -1,30 +1,21 @@ - - + 4.0.0 psidev.psi.tools master-pom - 4 + 2.0.7 - psidev.psi.tools ontology-config-reader + PSI :: Tools :: Ontology Config Reader jar - 2.0.6-SNAPSHOT - PSI :: Tools :: Ontology Config Reader The library provides an ontology configuration reader. - - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/ontology-config-reader/trunk - scm:svn:https://svn.code.sf.net/p/psidev/svn/psi/tools/ontology-config-reader/trunk - https://svn.code.sf.net/p/psidev/svn/psi/tools/ontology-config-reader/trunk - - @@ -32,13 +23,6 @@ com.sun.tools.xjc.maven2 maven-jaxb-plugin 1.0 - - - - generate - - - psidev.psi.tools.ontologyCfgReader.mapping.jaxb @@ -47,58 +31,43 @@ true true - - - - - maven-assembly-plugin - - ${descriptor} - + + + + generate + + + - - - junit - junit - 4.3.1 - test - - commons-logging commons-logging - 1.1 com.sun.xml.bind jaxb-impl - 2.1.3 stax stax - 1.2.0 javax.xml.bind jaxb-api - 2.1 + + + + + junit + junit - - - intact.nexus - IntAct Nexus - http://www.ebi.ac.uk/intact/maven/nexus/content/groups/public/ - - - diff --git a/ontology-manager/pom.xml b/ontology-manager/pom.xml index ba39e30..7537e4c 100644 --- a/ontology-manager/pom.xml +++ b/ontology-manager/pom.xml @@ -1,55 +1,25 @@ + 4.0.0 + psidev.psi.tools master-pom - 4 + 2.0.7 - 4.0.0 - ontology-manager - 2.0.7-SNAPSHOT - jar PSI :: Tools :: Ontology Manager + jar The library intends to provide a generic framework for Ontology access and handling. - - scm:git:https://github.com/MICommunity/ontology-manager.git - scm:git:https://github.com/MICommunity/ontology-manager.git - https://github.com/MICommunity/ontology-manager - HEAD - - - - - - org.apache.maven.plugins - maven-release-plugin - 2.5 - - true - deploy - - - - - psidev.psi.tools ontology-config-reader - 2.0.5 - - - - - junit - junit - 4.3.1 - test + ${project.version} @@ -86,11 +56,6 @@ commons-discovery 0.2 - - commons-logging - commons-logging - 1.0.4 - wsdl4j wsdl4j @@ -104,6 +69,11 @@ + + commons-logging + commons-logging + + log4j log4j @@ -122,50 +92,18 @@ 2.3 - - junit - junit - 4.11 - test - - opensymphony oscache 2.3 - - - - nexus-ebi-repo-old - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/ - - - nexus-ebi-release-repo - http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-repo/ - - - nexus-ebi-snapshot-repo - http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-snapshots/ - - + + + junit + junit + + - - - - - pst-release - EBI Nexus Repository - http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-release - - - - false - pst-snapshots - EBI Nexus Snapshots Repository - http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-snapshots - - \ No newline at end of file diff --git a/ontology-manager/src/test/java/psidev/psi/tools/ontology_manager/impl/ols/OlsOntologyTest.java b/ontology-manager/src/test/java/psidev/psi/tools/ontology_manager/impl/ols/OlsOntologyTest.java index f47621e..dfe6413 100644 --- a/ontology-manager/src/test/java/psidev/psi/tools/ontology_manager/impl/ols/OlsOntologyTest.java +++ b/ontology-manager/src/test/java/psidev/psi/tools/ontology_manager/impl/ols/OlsOntologyTest.java @@ -1,7 +1,6 @@ package psidev.psi.tools.ontology_manager.impl.ols; import org.junit.Assert; -import org.junit.Ignore; import org.junit.Test; import psidev.psi.tools.ontology_manager.OntologyManager; import psidev.psi.tools.ontology_manager.OntologyUtils; @@ -62,10 +61,10 @@ public void getValidTerms() throws OntologyLoaderException { public void getValidTerms_so() throws OntologyLoaderException { final OntologyAccess mod = manager.getOntologyAccess( "SO" ); // OntologyTermI parent = mod.getTermForAccession("SO:0000001"); // no good for testing! - // SO:0000336 has 9 children (OLS 10 Aug 2011) = 9 valid terms + // SO:0000336 has 9 children (OLS 27 Jul 2016) = 28 valid terms OntologyTermI parent = mod.getTermForAccession("SO:0000336"); Set terms = mod.getAllChildren(parent); - Assert.assertEquals( 14, terms.size() ); + Assert.assertEquals( 28, terms.size() ); } @Test @@ -87,16 +86,16 @@ public void getMiTermSynonyms() throws OntologyLoaderException { Assert.assertTrue( y2h.getNameSynonyms().contains( "2H" ) ); } - + @Test public void getMiTermSynonyms0217() throws OntologyLoaderException { final OntologyAccess mi = manager.getOntologyAccess( "MI" ); final Set terms = mi.getValidTerms( "MI:0217", false, true ); Assert.assertEquals( 1, terms.size() ); - + final OntologyTermI phosphorylation = mi.getTermForAccession("MI:0217"); assertEquals(1, phosphorylation.getNameSynonyms().size()); - + // different approach Collection names; names = OntologyUtils.getTermNames(terms); @@ -109,17 +108,17 @@ public void getMiChildTermSynonyms0190() throws OntologyLoaderException { OntologyAccess mi = manager.getOntologyAccess( "MI" ); Set terms = mi.getValidTerms( "MI:0190", true, false ); Assert.assertFalse(terms.isEmpty()); - + // different approach Collection names; names = OntologyUtils.getTermNames(terms); // preferred name assertTrue(names.contains("phosphorylation reaction")); - + // how about synonym? assertTrue(names.contains("phosphorylation")); } - + @Test public void getModTermSynonyms() throws OntologyLoaderException { final OntologyAccess mod = manager.getOntologyAccess( "MOD" ); diff --git a/master-pom/pom.xml b/pom.xml similarity index 54% rename from master-pom/pom.xml rename to pom.xml index 137b3d0..6035ef5 100755 --- a/master-pom/pom.xml +++ b/pom.xml @@ -1,19 +1,12 @@ - - + 4.0.0 psidev.psi.tools master-pom pom - 5-SNAPSHOT - - master-pom + 2.0.7 - - scm:svn:https://psidev.svn.sourceforge.net/svnroot/psidev/psi/tools/master-pom/trunk - scm:svn:https://psidev.svn.sourceforge.net/svnroot/psidev/psi/tools/master-pom/trunk - https://psidev.svn.sourceforge.net/svnroot/psidev/psi/tools/master-pom/trunk - + PSI :: Tools :: Master pom @@ -50,6 +43,22 @@ + + + scm:git:https://github.com/MICommunity/psi-tools.git + scm:git:https://github.com/MICommunity/psi-tools.git + https://github.com/MICommunity/psi-tools.git + + + + cv-rule-reader + ontology-manager + validator + ontology-config-reader + object-rule-reader + + + The Apache Software License, Version 2.0 @@ -63,21 +72,35 @@ http://www.ebi.ac.uk/ + + + disable-java8-doclint + + [1.8,) + + + -Xdoclint:none + + + + clean install - org.apache.maven.plugins maven-compiler-plugin + 3.5.1 1.5 1.5 + org.apache.maven.plugins maven-source-plugin + 3.0.1 attach-source @@ -87,12 +110,30 @@ + + external.atlassian.jgitflow + jgitflow-maven-plugin + 1.0-m5.1 + + + master + develop + feature- + release- + hotfix- + ${project.artifactId}- + + + + + org.apache.maven.plugins maven-javadoc-plugin + 2.10.3 1.5 true @@ -101,6 +142,7 @@ org.apache.maven.plugins maven-release-plugin + 2.5.3 deploy @@ -114,9 +156,11 @@ org.apache.maven.plugins maven-jxr-plugin + 2.5 + org.apache.maven.plugins maven-pmd-plugin 2.4 @@ -144,40 +188,75 @@ - - - junit - junit - 4.3.1 - test - - + + + + + commons-logging + commons-logging + 1.1 + + + commons-lang + commons-lang + 2.3 + + + + + com.sun.xml.bind + jaxb-impl + 2.1.3 + + + stax + stax + 1.2.0 + + + javax.xml.bind + jaxb-api + 2.1 + + + + + junit + junit + 4.3.1 + test + + + - + - intact.nexus - IntAct Nexus - http://www.ebi.ac.uk/intact/maven/nexus/content/groups/public/ + nexus-ebi-repo-old + http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/ + + + nexus-ebi-release-repo + http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-repo/ + + + nexus-ebi-snapshot-repo + http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-snapshots/ - - - intact.nexus - IntAct Nexus - http://www.ebi.ac.uk/intact/maven/nexus/content/groups/public/ - - - + - ebi-repo - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo + pst-release + EBI Nexus Repository + http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-release - + - ebi-repo-snapshots - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo-snapshots + false + pst-snapshots + EBI Nexus Snapshots Repository + http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-snapshots diff --git a/validator-tutorial/pom.xml b/validator-tutorial/pom.xml index 4d25470..ff64340 100644 --- a/validator-tutorial/pom.xml +++ b/validator-tutorial/pom.xml @@ -1,5 +1,5 @@ - diff --git a/validator/pom.xml b/validator/pom.xml index 0010e72..cd419f0 100644 --- a/validator/pom.xml +++ b/validator/pom.xml @@ -1,130 +1,59 @@ - - + 4.0.0 psidev.psi.tools master-pom - 4 + 2.0.7 validator + PSI :: Tools :: Generic Schema Validator jar - 2.0.6 - PSI :: Tools :: Generic Schema Validator - The library intends to provide a generic framework for validating XML Schema both at the syntactic and semantic level. + The library intends to provide a generic framework for validating XML Schema both at the syntactic and semantic + level. - - scm:git:https://github.com/MICommunity/psi-validator.git - scm:git:https://github.com/MICommunity/psi-validator.git - https://github.com/MICommunity/psi-validator - HEAD - - - - - - external.atlassian.jgitflow - jgitflow-maven-plugin - 1.0-m5.1 - - - master - develop - feature- - release- - hotfix- - ${project.artifactId}- - - - - - - - psidev.psi.tools cv-rule-reader - 2.0.5 + ${project.version} psidev.psi.tools object-rule-reader - 2.0.5 + ${project.version} psidev.psi.tools ontology-manager - 2.0.6 - - - - - junit - junit - 4.3.1 - test + ${project.version} commons-logging commons-logging - 1.1 - - + + commons-lang commons-lang - 2.3 commons-jxpath commons-jxpath 1.2 + - commons-lang - commons-lang - 2.4 + junit + junit - - - nexus-ebi-repo-old - http://www.ebi.ac.uk/intact/maven/nexus/content/repositories/ebi-repo/ - - - nexus-ebi-release-repo - http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-repo/ - - - nexus-ebi-snapshot-repo - http://www.ebi.ac.uk/Tools/maven/repos/content/groups/ebi-snapshots/ - - - - - - - - pst-release - EBI Nexus Repository - http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-release - - - - false - pst-snapshots - EBI Nexus Snapshots Repository - http://www.ebi.ac.uk/Tools/maven/repos/content/repositories/pst-snapshots - - - diff --git a/cv-mapping-rules/xsl/cv-mapping/CvMappingRules.xsl b/xml-schemas/xsl/cv-mapping/CvMappingRules.xsl similarity index 100% rename from cv-mapping-rules/xsl/cv-mapping/CvMappingRules.xsl rename to xml-schemas/xsl/cv-mapping/CvMappingRules.xsl