- public static void createPGraphDefault(WriteGraph graph, Resource target) throws DatabaseException {
- String name = NameUtils.findFreshEscapedName(graph, "Ontology Definition File", target);
- createPGraph(graph, target, name);
+ public static Resource setSCLScriptDefinition(WriteGraph graph, Resource script, String definition) throws DatabaseException {
+ graph.markUndoPoint();
+ Layer0 L0 = Layer0.getInstance(graph);
+ graph.claimLiteral(script, L0.SCLScript_definition, definition, Bindings.STRING);
+ Layer0Utils.addCommentMetadata(graph, "Set SCL script " + script + " definition.");
+ return script;
+ }
+
+ public static Resource createPGraphDefault(WriteGraph graph, Resource target) throws DatabaseException {
+ String name = NameUtils.findFreshEscapedName(graph, "Ontology Definition File", target);
+ return createPGraph(graph, target, name);