Search in sources :

Example 1 with URIReference

use of com.thoughtworks.studios.shine.semweb.URIReference in project gocd by gocd.

the class JobResourceImporter method importJob.

public Graph importJob(JobInstance job, final String baseUri) throws GoIntegrationException {
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Attempting to import job " + job);
    }
    JobXmlViewModel xmlModel = new JobXmlViewModel(job);
    Graph jobGraph = rdfizer.importURIUsingGRDDL(xmlModel, baseUri);
    URIReference jobURI = jobGraph.getURIReference(xmlModel.httpUrl(baseUri));
    importArtifactsForJob(jobURI, jobGraph);
    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Done building jobs graph with " + jobGraph.size() + " triples");
    }
    return jobGraph;
}
Also used : Graph(com.thoughtworks.studios.shine.semweb.Graph) URIReference(com.thoughtworks.studios.shine.semweb.URIReference) JobXmlViewModel(com.thoughtworks.go.server.domain.xml.JobXmlViewModel)

Aggregations

JobXmlViewModel (com.thoughtworks.go.server.domain.xml.JobXmlViewModel)1 Graph (com.thoughtworks.studios.shine.semweb.Graph)1 URIReference (com.thoughtworks.studios.shine.semweb.URIReference)1