You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@taverna.apache.org by st...@apache.org on 2015/06/11 17:24:26 UTC

[06/11] incubator-taverna-language git commit: Removed classes for Elmo/Sesame

Removed classes for Elmo/Sesame


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

Branch: refs/heads/wfdesc-jena
Commit: b180c1226e02138d7dc3a0bb8c7c93ac2c62c857
Parents: 856fadc
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Thu Feb 26 17:28:02 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Fri Jun 5 22:52:22 2015 +0100

----------------------------------------------------------------------
 .../apache/taverna/scufl2/wfdesc/Labelled.java  | 36 ----------
 .../scufl2/wfdesc/TurtleWriterWithBase.java     | 71 --------------------
 2 files changed, 107 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/blob/b180c122/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/Labelled.java
----------------------------------------------------------------------
diff --git a/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/Labelled.java b/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/Labelled.java
deleted file mode 100644
index 203be79..0000000
--- a/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/Labelled.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.apache.taverna.scufl2.wfdesc;
-
-/*
- *
- * 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.
- *
-*/
-
-
-import java.util.Set;
-
-import org.openrdf.elmo.annotations.rdf;
-
-@rdf("http://purl.org/wf4ever/wfdesc#Description")
-public interface Labelled {
-	
-	@rdf("http://www.w3.org/2000/01/rdf-schema#label")
-	Set<String> getLabel();
-	void setLabel(Set<String> label);
-}
-

http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/blob/b180c122/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/TurtleWriterWithBase.java
----------------------------------------------------------------------
diff --git a/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/TurtleWriterWithBase.java b/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/TurtleWriterWithBase.java
deleted file mode 100644
index 05f484d..0000000
--- a/taverna-scufl2-wfdesc/src/main/java/org/apache/taverna/scufl2/wfdesc/TurtleWriterWithBase.java
+++ /dev/null
@@ -1,71 +0,0 @@
-package org.apache.taverna.scufl2.wfdesc;
-
-/*
- *
- * 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.
- *
-*/
-
-import java.io.IOException;
-import java.io.OutputStream;
-import java.net.URI;
-
-import org.apache.taverna.scufl2.api.common.URITools;
-import org.openrdf.rio.RDFHandlerException;
-import org.openrdf.rio.turtle.TurtleUtil;
-import org.openrdf.rio.turtle.TurtleWriter;
-import org.openrdf.sail.memory.model.MemURI;
-
-
-public class TurtleWriterWithBase extends TurtleWriter {
-	private URITools uriTools = new URITools();
-	private final URI baseURI;
-
-	TurtleWriterWithBase(OutputStream out, URI baseURI) {
-		super(out);
-		this.baseURI = baseURI;
-	}
-
-	@Override
-	public void startRDF() throws RDFHandlerException {
-		super.startRDF();
-		try {
-			writeBase();
-		} catch (IOException e) {
-			throw new RDFHandlerException(e);
-		}
-	}
-
-	@Override
-	protected void writeURI(org.openrdf.model.URI uri) throws IOException {
-
-		final String uriString = uriTools.relativePath(baseURI,
-				URI.create(uri.toString())).toASCIIString();
-		super.writeURI(new MemURI(null, uriString, ""));
-	}
-
-	protected void writeBase() throws IOException {
-		writer.write("@base ");
-		writer.write("<");
-		writer.write(TurtleUtil.encodeURIString(baseURI.toASCIIString()));
-		writer.write("> .");
-		writer.writeEOL();
-	}
-	
-	
-}