From b8fd17ba1ec3bcf805c47fc326df3a52d49b2063 Mon Sep 17 00:00:00 2001 From: "Huda J. Khan" Date: Wed, 7 Feb 2018 18:39:58 -0500 Subject: [PATCH] Revert "integrating related term info in skos utils" This reverts commit 8f66b10323ffb14bc5d622502d7dd12b8b6f3934. --- .../mannlib/semservices/util/SKOSUtils.java | 21 +-- dependencies/pom.xml | 164 ++++++------------ 2 files changed, 56 insertions(+), 129 deletions(-) diff --git a/api/src/main/java/edu/cornell/mannlib/semservices/util/SKOSUtils.java b/api/src/main/java/edu/cornell/mannlib/semservices/util/SKOSUtils.java index fb29b3f0b..5b8955a87 100644 --- a/api/src/main/java/edu/cornell/mannlib/semservices/util/SKOSUtils.java +++ b/api/src/main/java/edu/cornell/mannlib/semservices/util/SKOSUtils.java @@ -1,4 +1,4 @@ -/* $This file is distributed under the terms of the license in /doc/license.txt$ */ +/* $This file is distributed under the terms of the license in LICENSE$ */ /* We are no longer using the SKOS API since Vitro has moved to V 4.0 of OWL API which does not appear to be compatible. This file will contain methods used for reading SKOS as XML and parsing it for the properties @@ -160,19 +160,13 @@ public class SKOSUtils { // conceptURI); concept.setCloseMatchURIList(closeMatchURIList); - // Notes may exist, in which case they should be employed if (addNotes) { - List notes = getNotesFromModel(conceptURI, model, langTagValue); + List notes = getNotesFromModel(conceptURI, model, + langTagValue); if (notes.size() > 0) { concept.setDefinition(notes.get(0)); } - } else { // get definitions from skos:definition - - List definitions = getDefinitionFromModel(conceptURI, model, langTagValue); - if (definitions.size() > 0) { - concept.setDefinition(definitions.get(0)); - } } } catch (Exception e) { @@ -225,17 +219,12 @@ public class SKOSUtils { String propertyURI = "http://www.w3.org/2004/02/skos/core#note"; return getLabelsFromModel(conceptURI, propertyURI, model, langTagValue); } - - private static List getDefinitionFromModel(String conceptURI, - Model model, String langTagValue) { - String propertyURI = "http://www.w3.org/2004/02/skos/core#definition"; - return getLabelsFromModel(conceptURI, propertyURI, model, langTagValue); - } private static List getCloseMatchURIsFromModel(String conceptURI, Model model) { String propertyURI = "http://www.w3.org/2004/02/skos/core#closeMatch"; - return getRelatedURIsFromModel(conceptURI, propertyURI, model); + return getRelatedURIsFromModel(conceptURI, propertyURI, model); + } private static List getExactMatchURIsFromModel(String conceptURI, diff --git a/dependencies/pom.xml b/dependencies/pom.xml index eb18519c1..77bc41c76 100644 --- a/dependencies/pom.xml +++ b/dependencies/pom.xml @@ -7,37 +7,37 @@ org.vivoweb vitro-dependencies - 1.10.0-beta2 + 2.0.0-SNAPSHOT pom org.vivoweb vitro-project - 1.10.0-beta2 + 2.0.0-SNAPSHOT .. Vitro Dependencies - - + + + + + + + + net.sourceforge.owlapi owlapi-api - 5.0.4 + 5.1.1 net.sourceforge.owlapi owlapi-apibinding - 5.0.4 + 5.1.1 @@ -182,67 +163,51 @@ - - org.semarglproject - semargl-core - 0.6.1 - - - org.semarglproject - semargl-rdfa - 0.6.1 - - - com.github.jsonld-java - jsonld-java - 0.8.3 - - - - com.fasterxml.jackson.core - jackson-core - 2.7.4 - - - - org.apache.httpcomponents - fluent-hc - 4.5.2 - org.apache.httpcomponents httpclient - 4.5.2 + 4.5.3 org.apache.httpcomponents httpmime - 4.5.2 + 4.5.3 org.apache.jena jena-arq - 3.3.0 + 3.4.0 + + + + org.apache.httpcomponents + httpclient-osgi + + + org.apache.httpcomponents + httpcore-osgi + + org.apache.jena jena-core - 3.3.0 + 3.4.0 org.apache.jena jena-sdb - 3.3.0 + 3.4.0 org.apache.jena jena-tdb - 3.3.0 + 3.4.0 org.apache.solr solr-solrj - 4.7.2 + 4.10.4 org.directwebremoting @@ -254,30 +219,15 @@ freemarker 2.3.23 - - org.glassfish - javax.json - 1.0.4 - - - org.hibernate - jtidy - r8-20060801 - org.jsoup jsoup - 1.10.1 + 1.10.3 org.owasp.antisamy antisamy - 1.5.3 - - - com.google.code.gson - gson - 2.5 + 1.5.6 @@ -289,30 +239,18 @@ org.apache.taglibs taglibs-standard-spec - 1.2.1 + 1.2.5 org.apache.taglibs taglibs-standard-impl - 1.2.1 + 1.2.5 - - javax.mail - mail - 1.4 - - - - edu.cornell.library.scholars - DataDistributionAPI_VIVO_1.10.0 - 1.0 - jar + com.sun.mail + javax.mail + 1.6.0