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 2016/02/10 13:47:21 UTC
[37/50] [abbrv] 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/62e8624e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/tree/62e8624e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-taverna-language/diff/62e8624e
Branch: refs/heads/wfdesc-jena
Commit: 62e8624e31301f77f53e91dda9c4f81b65be559d
Parents: ec062f6
Author: Stian Soiland-Reyes <st...@apache.org>
Authored: Thu Feb 26 17:28:02 2015 +0000
Committer: Stian Soiland-Reyes <st...@apache.org>
Committed: Wed Feb 10 11:04:47 2016 +0000
----------------------------------------------------------------------
.../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/62e8624e/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/62e8624e/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();
- }
-
-
-}