def _get_triplet_value_list ( self , graph , identity , rdf_type ) : values = [ ] for elem in graph . objects ( identity , rdf_type ) : values . append ( elem . toPython ( ) ) return values
list to rdf triple python
Get a list of values from RDF triples when more than one may be present
def _get_triplet_value_list(self, graph, identity, rdf_type):
        """
        Get a list of values from RDF triples when more than one may be present
        """
        values = []
        for elem in graph.objects(identity, rdf_type):
            values.append(elem.toPython())
        return values