pyshacl/shape.py
def value_nodes(self, target_graph, focus):
        """
        For each focus node, you can get a set of value nodes.
        For a Node Shape, each focus node has just one value node,
            which is just the focus_node
        :param target_graph:
        :param focus:
        :return:
        """
        if not isinstance(focus, (tuple, list, set)):
            focus = [focus]
        if not self.is_property_shape:
            return {f: set((f,)) for f in focus}
        path_val = self.path()
        focus_dict = {}
        for f in focus:
            focus_dict[f] = value_nodes_from_path(self.sg, f, path_val, target_graph)
        return focus_dict

        For each focus node, you can get a set of value nodes.
        For a Node Shape, each focus node has just one value node,
            which is just the focus_node
        :param target_graph:
        :param focus:
        :return:
        
For each focus node, you can get a set of value nodes.
For a Node Shape, each focus node has just one value node,
which is just the focus_node
For each focus node you can get a set of value nodes . For a Node Shape each focus node has just one value node which is just the focus_node
def value_nodes(self, target_graph, focus):
        if not isinstance(focus, (tuple, list, set)):
            focus = [focus]
        if not self.is_property_shape:
            return {f: set((f,)) for f in focus}
        path_val = self.path()
        focus_dict = {}
        for f in focus:
            focus_dict[f] = value_nodes_from_path(self.sg, f, path_val, target_graph)
        return focus_dict
def value_nodes ( self , target_graph , focus ) : if not isinstance ( focus , ( tuple , list , set ) ) : focus = [ focus ] if not self . is_property_shape : return { f : set ( ( f , ) ) for f in focus } path_val = self . path ( ) focus_dict = { } for f in focus : focus_dict [ f ] = value_nodes_from_path ( self . sg , f , path_val , target_graph ) return focus_dict
For each focus node, you can get a set of value nodes.
For each focus node you can get a set of value nodes .
"""
        For each focus node, you can get a set of value nodes.
        For a Node Shape, each focus node has just one value node,
            which is just the focus_node
        :param target_graph:
        :param focus:
        :return:
        """
None
self
target_graph
None
focus
None