Skip to content

Commit

Permalink
Use UUID instead of UID
Browse files Browse the repository at this point in the history
  • Loading branch information
evren committed May 12, 2014
1 parent 7165254 commit 9b5f886
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion owlapiv3/src/main/java/com/clarkparsia/owlapiv3/OWL.java
Expand Up @@ -13,6 +13,7 @@
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;

import org.mindswap.pellet.utils.Namespaces;
import org.semanticweb.owlapi.apibinding.OWLManager;
Expand Down Expand Up @@ -132,7 +133,7 @@ public class OWL {


public static OWLOntology Ontology(Collection<? extends OWLAxiom> axioms) {
IRI uri = IRI.create( "http://www.example.org/ontology" + new UID() );
IRI uri = IRI.create( "http://www.example.org/ontology" + UUID.randomUUID() );

return Ontology( axioms, uri );
}
Expand Down

0 comments on commit 9b5f886

Please sign in to comment.