cubicweb-skos #5313853 [rdfio] Get all types of a resource [in-progress]

In RDF, it is common for a resource to have multiple types (for example, in turtle, we often see lines like <uri> a foaf;Agent, duv:Consumer), so it is a common need to get all types for a resource. One reason for this is that we want to make sure we can ask for an attribute : if a resource has type geo:SpatialThing, it makes sense to ask for attributes geo:lat and geo:long.

A sample usage would be like the fololwing:

for type_uri in graph.types_for_uri(uri):
    print({} has type {}).format(uri, type_uri)
done in<not specified>
load left0.500
closed by<not specified>
patch[rdfio] Add function to get all types for a resource. [rejected]