You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@any23.apache.org by an...@apache.org on 2013/01/22 04:19:39 UTC

svn commit: r1436736 - in /any23/trunk: api/src/main/java/org/apache/any23/vocab/DOAP.java core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java

Author: ansell
Date: Tue Jan 22 03:19:38 2013
New Revision: 1436736

URL: http://svn.apache.org/viewvc?rev=1436736&view=rev
Log:
add DOAP vocabulary and bump numbers in RDFSchemaUtilsTest to match

Added:
    any23/trunk/api/src/main/java/org/apache/any23/vocab/DOAP.java
Modified:
    any23/trunk/core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java

Added: any23/trunk/api/src/main/java/org/apache/any23/vocab/DOAP.java
URL: http://svn.apache.org/viewvc/any23/trunk/api/src/main/java/org/apache/any23/vocab/DOAP.java?rev=1436736&view=auto
==============================================================================
--- any23/trunk/api/src/main/java/org/apache/any23/vocab/DOAP.java (added)
+++ any23/trunk/api/src/main/java/org/apache/any23/vocab/DOAP.java Tue Jan 22 03:19:38 2013
@@ -0,0 +1,95 @@
+/*
+ * 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.
+ */
+package org.apache.any23.vocab;
+
+import org.openrdf.model.URI;
+
+/**
+ * The <a href="https://github.com/edumbill/doap/wiki">Description Of A Project</a> vocabulary.
+ * 
+ * @author lewismc
+ */
+public class DOAP extends Vocabulary {
+
+	public static final String NS = "http://usefulinc.com/ns/doap#";
+
+	private static DOAP instance;
+	
+	public static DOAP getInstance() {
+        if(instance == null) {
+            instance = new DOAP();
+        }
+        return instance;
+    }
+	
+	//Resources
+	public final URI Project				=	createClass(NS, "Project");
+	public final URI Version				=	createClass(NS, "Version");
+	public final URI Specification			=	createClass(NS, "Specification");
+	public final URI Repository				=	createClass(NS, "Repository");
+	public final URI SVNRepository			=	createClass(NS, "SVNRepository");
+	public final URI BKRepository			=	createClass(NS, "BKRepository");
+	public final URI CVSRepository			=	createClass(NS, "CVSRepository");
+	public final URI ArchRepository			=	createClass(NS, "ArchRepository");
+	public final URI BazaarBranch			=	createClass(NS, "BazaarBranch");
+	public final URI GitRepository			=	createClass(NS, "GitRepository");
+	public final URI HgRepository			=	createClass(NS, "HgRepository");
+	public final URI DarcsRepository		=	createClass(NS, "DarcsRepository");
+	
+	//Properties
+	public final URI name					=	createProperty(NS, "name");
+	public final URI homepage				=	createProperty(NS, "homepage");
+	public final URI old_homepage			=	createProperty(NS, "old_homepage");
+	public final URI created				=	createProperty(NS, "created");
+	public final URI shortdesc				=	createProperty(NS, "shortdesc");
+	public final URI description			=	createProperty(NS, "description");
+	public final URI release				=	createProperty(NS, "release");
+	public final URI mailing_list			=	createProperty(NS, "mailing_list");
+	public final URI category				=	createProperty(NS, "category");
+	public final URI license				=	createProperty(NS, "license");
+	public final URI repository				=	createProperty(NS, "repository");
+	public final URI anon_root				=	createProperty(NS, "anon_root");
+	public final URI browse					=	createProperty(NS, "browse");
+	public final URI module					=	createProperty(NS, "module");
+	public final URI location				=	createProperty(NS, "location");
+	public final URI download_page			=	createProperty(NS, "download_page");
+	public final URI download_mirror		=	createProperty(NS, "download_mirror");
+	public final URI revision				=	createProperty(NS, "revision");
+	public final URI file_release			=	createProperty(NS, "file_release");
+	public final URI wiki					=	createProperty(NS, "wiki");
+	public final URI bug_database			=	createProperty(NS, "bug_database");
+	public final URI screenshots			=	createProperty(NS, "screenshots");
+	public final URI maintainer				=	createProperty(NS, "maintainer");
+	public final URI developer				=	createProperty(NS, "developer");
+	public final URI documenter				=	createProperty(NS, "documenter");
+	public final URI translator				=	createProperty(NS, "translator");
+	public final URI tester					=	createProperty(NS, "tester");
+	public final URI helper					=	createProperty(NS, "helper");
+	public final URI programming_language	=	createProperty(NS, "programming_language");
+	public final URI os						=	createProperty(NS, "os");
+	public final URI implement				=	createProperty(NS, "implement");
+	public final URI service_endpoint		=	createProperty(NS, "service_endpoint");
+	public final URI language				=	createProperty(NS, "language");
+	public final URI vendor					=	createProperty(NS, "vendor");
+	public final URI platform				=	createProperty(NS, "platform");
+	public final URI audience				=	createProperty(NS, "audience");
+	public final URI blog					=	createProperty(NS, "blog");
+
+	private DOAP(){
+        super(NS);
+    }
+}

Modified: any23/trunk/core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java
URL: http://svn.apache.org/viewvc/any23/trunk/core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java?rev=1436736&r1=1436735&r2=1436736&view=diff
==============================================================================
--- any23/trunk/core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java (original)
+++ any23/trunk/core/src/test/java/org/apache/any23/vocab/RDFSchemaUtilsTest.java Tue Jan 22 03:19:38 2013
@@ -42,7 +42,7 @@ public class RDFSchemaUtilsTest {
      */
     @Test
     public void testSerializeVocabulariesNTriples() {
-        serializeVocabularies(RDFSchemaUtils.VocabularyFormat.NTriples, 844);
+        serializeVocabularies(RDFSchemaUtils.VocabularyFormat.NTriples, 942);
     }
 
     /**
@@ -52,7 +52,7 @@ public class RDFSchemaUtilsTest {
      */
     @Test
     public void testSerializeVocabulariesRDFXML() {
-        serializeVocabularies(RDFSchemaUtils.VocabularyFormat.RDFXML, 2175 + 31); // Effective lines + separators.
+        serializeVocabularies(RDFSchemaUtils.VocabularyFormat.RDFXML, 2457); // Effective lines + separators.
     }
 
     private void serializeVocabularies(RDFSchemaUtils.VocabularyFormat format, int expectedLines) {