/**
 * 
 */
package com.github.podd.utils;

import org.openrdf.model.URI;
import org.semanticweb.owlapi.model.IRI;

/**
 * Simple class to contain details about a Podd Artifact (i.e. Projects at present).
 * 
 * This must only be used at the last stage before presenting results to users. For all other cases,
 * {@link InferredOWLOntologyID} should be used to represent references to specific versions of
 * artifacts, and {@link IRI} should be used to represent references to either versions or ontology
 * IRIs before they are resolved to {@link InferredOWLOntologyID} instances.
 * 
 * @author kutila
 * 
 */
public class PoddArtifact extends PoddObject
{
    
    private String leadInstitution;
    
    /**
     * Constructor
     * 
     * @param uri
     */
    public PoddArtifact(URI uri)
    {
        super(uri);
    }
    
    public String getLeadInstitution()
    {
        return leadInstitution;
    }
    
    public void setLeadInstitution(String leadInstitution)
    {
        this.leadInstitution = leadInstitution;
    }
    
}

@@ -41,38 +41,8 @@
 s;%0A%0A
-import org.openrdf.model.URI;%0A
 impo
@@ -660,24 +660,70 @@
 nstitution;%0A
+    private InferredOWLOntologyID artifactID;%0A
     %0A    /**
@@ -804,41 +804,150 @@
 act(
-URI uri)%0A    %7B%0A        super(uri)
+InferredOWLOntologyID artifactID)%0A    %7B%0A        super(((IRI)artifactID.getOntologyIRI()).toOpenRDFURI());%0A        this.artifactID = artifactID
 ;%0A  
@@ -1167,10 +1167,103 @@
  %7D%0A    %0A
+    public InferredOWLOntologyID getArtifactID()%0A    %7B%0A        return this.artifactID;%0A    %7D%0A
 %7D%0A

convert PoddArtifact to also wrap the full InferredOWLOntologyID that it refers to