You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/01/17 11:32:40 UTC

[8/9] git commit: MARMOTTA-423: added more tests

MARMOTTA-423: added more tests


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

Branch: refs/heads/develop
Commit: b28dc3edf93e299ea6d6d826b1bb3f34b9daf67f
Parents: 10e4e55
Author: Sergio Fernández <wi...@apache.org>
Authored: Fri Jan 17 11:27:58 2014 +0100
Committer: Sergio Fernández <wi...@apache.org>
Committed: Fri Jan 17 11:27:58 2014 +0100

----------------------------------------------------------------------
 .../test/freebase/TestFreebaseProvider.java     | 13 ++++++++++
 .../ldclient/test/freebase/m.0nzm.sparql        | 27 ++++++++++++++++++++
 2 files changed, 40 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/b28dc3ed/libraries/ldclient/ldclient-provider-freebase/src/test/java/org/apache/marmotta/ldclient/test/freebase/TestFreebaseProvider.java
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-freebase/src/test/java/org/apache/marmotta/ldclient/test/freebase/TestFreebaseProvider.java b/libraries/ldclient/ldclient-provider-freebase/src/test/java/org/apache/marmotta/ldclient/test/freebase/TestFreebaseProvider.java
index 9d87cfa..73a5ccb 100644
--- a/libraries/ldclient/ldclient-provider-freebase/src/test/java/org/apache/marmotta/ldclient/test/freebase/TestFreebaseProvider.java
+++ b/libraries/ldclient/ldclient-provider-freebase/src/test/java/org/apache/marmotta/ldclient/test/freebase/TestFreebaseProvider.java
@@ -31,11 +31,24 @@ import org.junit.Test;
  */
 public class TestFreebaseProvider extends ProviderTestBase {
 
+    private static final String ASF = "http://rdf.freebase.com/ns/m.0nzm";
+
     private static final String MARMOTTA = "http://rdf.freebase.com/ns/m.0wqhskn";
 
     private static final String SERGIO = "http://rdf.freebase.com/ns/m.07zqbwz";
 
     /**
+     * Tests accessing ASF's page from Freebase.
+     *
+     * @throws Exception
+     *
+     */
+    @Test
+    public void testASF() throws Exception {
+        testResource(ASF, "m.0nzm.sparql");
+    }
+
+    /**
      * Tests accessing Marmotta's page from Freebase.
      *
      * @throws Exception

http://git-wip-us.apache.org/repos/asf/marmotta/blob/b28dc3ed/libraries/ldclient/ldclient-provider-freebase/src/test/resources/org/apache/marmotta/ldclient/test/freebase/m.0nzm.sparql
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-provider-freebase/src/test/resources/org/apache/marmotta/ldclient/test/freebase/m.0nzm.sparql b/libraries/ldclient/ldclient-provider-freebase/src/test/resources/org/apache/marmotta/ldclient/test/freebase/m.0nzm.sparql
new file mode 100644
index 0000000..fab3d20
--- /dev/null
+++ b/libraries/ldclient/ldclient-provider-freebase/src/test/resources/org/apache/marmotta/ldclient/test/freebase/m.0nzm.sparql
@@ -0,0 +1,27 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+PREFIX ns: <http://rdf.freebase.com/ns/>
+PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
+
+ASK {
+   ns:m.0nzm> ns:rdf:type ns:business.brand ;
+        ns:common.topic.alias "ASF"@en;
+        rdfs:label: "Apache Software Foundation"@en ;
+        ns:common.topic.official_website <http://www.apache.org/> .
+}