Skip to content

Commit

Permalink
Use latest trusturi version and improve temp URI resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
tkuhn committed Sep 20, 2018
1 parent 8b4893b commit f7706d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
<dependency>
<groupId>net.trustyuri</groupId>
<artifactId>trustyuri</artifactId>
<version>1.10</version>
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/org/nanopub/trusty/TempUriReplacer.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@

/**
* You can use temporary URIs for your nanopublications that start with
* "http://purl.org/nanopub/temp/". These then become short "http://purl.org/np/"
* when they are transformed to trusty nanopublications.
* "http://purl.org/nanopub/temp/". These then become "http://purl.org/np/ARTIFACTCODE-PLACEHOLDER/"
* before being transformed to trusty nanopublications, and as final trusty nanopublications have
* the actual artifact code instead of the placeholder.
*
* @author Tobias Kuhn
*/
public class TempUriReplacer implements RDFHandler {

public static final String tempUri = "http://purl.org/nanopub/temp/";
public static final String normUri = "http://purl.org/np/";
public static final String normUri = "http://purl.org/np/ARTIFACTCODE-PLACEHOLDER/";

private String uriPrefix;
private RDFHandler nestedHandler;
Expand Down

0 comments on commit f7706d9

Please sign in to comment.