summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-09 15:43:54 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-07-09 15:43:54 +0100
commitc37fd73e52111fff911d6825f9df5263c1d69960 (patch)
tree9477d109f018b108622c81bcaf6cb5b548838189
parente5ca3594055c382cda23a4a4b190b101a80aaa50 (diff)
downloaddefinitions-c37fd73e52111fff911d6825f9df5263c1d69960.tar.gz
schema: Use shorter way of constructing an rdflib.resource.Resource
Change-Id: I4ec1ce7dc93a778d94ecec60c7a2e83de3afa135
-rw-r--r--schema/parse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema/parse.py b/schema/parse.py
index d0ffc8aa..69fd730b 100644
--- a/schema/parse.py
+++ b/schema/parse.py
@@ -123,7 +123,7 @@ def new_resource(graph, uriref, rdf_type):
and update the information about the resource that is stored in 'graph'.
'''
- entity = rdflib.resource.Resource(graph, uriref)
+ entity = graph.resource(uriref)
entity.set(RDF.type, rdf_type)
return entity