You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2013/08/28 15:38:16 UTC

git commit: MARMOTTA-66: minor cleanup

Updated Branches:
  refs/heads/develop e9936b537 -> f7ac43c60


MARMOTTA-66: minor cleanup


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/f7ac43c6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/f7ac43c6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/f7ac43c6

Branch: refs/heads/develop
Commit: f7ac43c602e294afb3ebd1dbede5e01c04433098
Parents: e9936b5
Author: Jakob Frank <ja...@apache.org>
Authored: Wed Aug 28 15:31:36 2013 +0200
Committer: Jakob Frank <ja...@apache.org>
Committed: Wed Aug 28 15:31:36 2013 +0200

----------------------------------------------------------------------
 .../marmotta/commons/sesame/repository/ResourceUtils.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/f7ac43c6/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
index 156c95f..c048cb9 100644
--- a/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
+++ b/commons/marmotta-commons/src/main/java/org/apache/marmotta/commons/sesame/repository/ResourceUtils.java
@@ -39,8 +39,8 @@ import java.util.*;
  * Utility methods for simplifying certain common tasks. All methods are static and take as first argument a
  * RepositoryConnection that needs to be managed by the caller (i.e. requested from the repository and closed after use).
  *
- * <p/>
- * Author: Sebastian Schaffert
+ * @author Sebastian Schaffert (sschaffert@apache.org)
+ * @author Jakob Frank <ja...@apache.org>
  */
 public class ResourceUtils {
 
@@ -1061,8 +1061,8 @@ public class ResourceUtils {
      */
     public static String getLabel(RepositoryConnection con, Resource r, Locale loc, URI context) throws RepositoryException {
         String label = null;
-        // check kiwi:title, rdfs:label, dc:title in this order ...
-        String[] properties = { Namespaces.NS_RDFS+"label", Namespaces.NS_DC+"title", Namespaces.NS_DC_TERMS+"title", Namespaces.NS_SKOS+"prefLabel" };
+        // check rdfs:label, dct:title, dc:title, skos:prefLabel in this order ...
+        String[] properties = { Namespaces.NS_RDFS+"label", Namespaces.NS_DC_TERMS+"title", Namespaces.NS_DC+"title", Namespaces.NS_SKOS+"prefLabel" };
 
         for(String property : properties) {
             label = getProperty(con, r,property,loc,context);