fun createNamedGraph(model: Model, graphNameNode: Resource?, elements: RDFList?): NamedGraph? { val result: NamedGraph = model.createResource(SP.NamedGraph).`as`(NamedGraph::class.java) result.addProperty(SP.graphNameNode, graphNameNode) result.addProperty(SP.elements, elements) return result }
Creates a new NamedGraph element as a blank node in a given Model .