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;
}
Aggregations