Skip to content

Commit

Permalink
Release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Nov 23, 2023
1 parent c3b062f commit 4e70e80
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<name>Wings OPM Mapper</name>
<packaging>jar</packaging>
<description>Wings OPM (Open Provenance Model) Mapper</description>
<version>2.0.0</version>
<version>1.3.0</version>

<properties>
<log4j.version>2.16.0</log4j.version>
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/edu/isi/kcap/wings/opmm/FilePublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public FilePublished publishFile(String filePath) throws IOException {
String filePathClear = filePath.replaceAll("\\s", "");
File file = new File(filePathClear);
if (!file.exists()) {
throw new IOException("File " + filePath + " does not exist");
System.err.println("File " + filePath + " does not exist");
// throw new IOException("File " + filePath + " does not exist");
}
switch (this.type) {
case FILE_SYSTEM:
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/edu/isi/kcap/wings/opmm/ModelUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ModelUtils {
*/
public static OntModel loadModel(String path) throws IllegalArgumentException {
OntModel m = ModelFactory.createOntologyModel();
if (path.startsWith("http://")) {
if (path.startsWith("http://") || path.startsWith("https://")) {
m.read(path);
return m;
}
Expand Down
14 changes: 14 additions & 0 deletions src/test/java/opmw_mapper/UtilsTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package opmw_mapper;

import org.apache.jena.ontology.OntModel;
import org.junit.Test;
import edu.isi.kcap.wings.opmm.ModelUtils;

public class UtilsTest {
@Test
public void test() {
String resourceUri = "https://opmw.org/exportTest/resource/WorkflowExecutionAccount/Caesar_Cypher-2b-3c5e9dd8-6c44-4666-a6a2-cf572aca76db";
OntModel model = ModelUtils.loadModel(resourceUri);
model.getIndividual(resourceUri).listProperties().toList().forEach(System.out::println);
}
}

0 comments on commit 4e70e80

Please sign in to comment.