contentHandler.put(scriptUri, mediaType, scriptFileBytes);
GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
scriptNode.deleteProperties(DCTERMS.title);
scriptNode.deleteProperties(SCRIPT.scriptLanguage);
scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
scriptNode.deleteProperties(SCRIPT.producedType);
scriptNode.addProperty(RDF.type, SCRIPT.Script);
scriptNode.addProperty(DCTERMS.title,
LiteralFactory.getInstance().
createTypedLiteral(scriptName));
scriptNode.addProperty(SCRIPT.scriptLanguage,
LiteralFactory.getInstance().
createTypedLiteral(scriptLanguage));
scriptNode.addProperty(SCRIPT.scriptLanguageVersion,
LiteralFactory.getInstance().
createTypedLiteral(scriptLanguageVersion));
if(!producedTypeString.equals("")) {
scriptNode.addProperty(SCRIPT.producedType,
LiteralFactory.getInstance().
createTypedLiteral(
MediaType.valueOf(producedTypeString).
toString()));
}