diff --git a/pyreason/examples/__init__.py b/pyreason/examples/__init__.py deleted file mode 100755 index e69de29b..00000000 diff --git a/pyreason/examples/example_graph/honda_subgraph.graphml b/pyreason/examples/example_graph/honda_subgraph.graphml deleted file mode 100755 index 9151b807..00000000 --- a/pyreason/examples/example_graph/honda_subgraph.graphml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - -Qlik Technologies Inc337400.0451030US74733T1051 -Cie Generale des Etablissements Michelin2210000.0251010FR0000121261 -Alfa Laval AB7640.0201060SE0000695876 - -CAPEX654.00.12 -COGS3.310.1 - - \ No newline at end of file diff --git a/pyreason/examples/example_yamls/facts.yaml b/pyreason/examples/example_yamls/facts.yaml deleted file mode 100755 index bab61d08..00000000 --- a/pyreason/examples/example_yamls/facts.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Example format for facts -# DO NOT MODIFY! THIS IS FOR EXAMPLE PURPOSES ONLY ---- -# List all facts below -nodes: - fact_1: - node: n2825 # Name of the node - label: disruption # Name of the label of the node - bound: [0.6, 0.8] # Bound of the label - static: false # Whether it applies to all timesteps and cannot change - t_lower: 0 # Starting time - t_upper: 0 # Ending time. In this case it will be active for the first timestep t=0 - - fact_2: - node: n2825 - label: success - bound: [0.1, 0.5] - static: false - t_lower: 0 - t_upper: 0 - -edges: - fact_1: - source: n2825 # Source of the edge - target: n2625 # Target of the edge - label: strong # Name of the label of the node - bound: [1, 1] # Bound of the label - static: false - t_lower: 0 # Starting time - t_upper: 0 # Ending time. In this case it will be active for the first timestep t=0 \ No newline at end of file diff --git a/pyreason/examples/example_yamls/ipl.yaml b/pyreason/examples/example_yamls/ipl.yaml deleted file mode 100755 index 6338074e..00000000 --- a/pyreason/examples/example_yamls/ipl.yaml +++ /dev/null @@ -1,5 +0,0 @@ -# Inconsistent predicate list -# Add any other inconsistencies below if necessary ---- -ipl: - - [success, disruption] diff --git a/pyreason/examples/example_yamls/labels.yaml b/pyreason/examples/example_yamls/labels.yaml deleted file mode 100755 index 7922617d..00000000 --- a/pyreason/examples/example_yamls/labels.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Example format for labels -# DO NOT MODIFY! THIS IS FOR EXAMPLE PURPOSES ONLY ---- -# Labels that apply to all nodes -node_labels: - - success - - disruption - -# Labels that apply to all edges -edge_labels: - - strong - -# Labels that apply to specific nodes -node_specific_labels: - - special_node_label: [] - # special_node_label: [n2825] - -# Labels that apply to specific edges -edge_specific_labels: - - special_edge_label: [] - # special_edge_label: [[n2625, n2825], [n2989, n2825]] \ No newline at end of file diff --git a/pyreason/examples/example_yamls/rules.yaml b/pyreason/examples/example_yamls/rules.yaml deleted file mode 100755 index 880e810a..00000000 --- a/pyreason/examples/example_yamls/rules.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# Example format for rules -# DO NOT MODIFY! THIS IS FOR EXAMPLE PURPOSES ONLY - ---- -# All Rules come under here. Make sure each rule name is different otherwise it'll get overridden -# rule_1 says: -# Nodes that have the success label with bounds between 0 and 1, will be influenced next timestep if half its neighbors have success between 0.5 and 1 -rule_1: - target: success # Target label - - target_criteria: # List of all target criteria - # All criteria come here in the form [label, lower_bound, upper_bound] - - [success, 0.0, 1.0] - - delta_t: 1 # Delta t, time when this rule is applicable - - neigh_criteria: # List of all neighbour criteria in the form [criteria on node/edge, label, [lower_bound, upper_bound], [equal/greater/less/greater_equal/less_equal, number/percent, value]] - - [node, [x1], success, [0.5, 1.0], [greater_equal, number, 1]] - - [node, [x2], disruption, [0.5, 1.0], [greater_equal, number, 1]] - - [edge, [x1, x2], strong, [0,1], [greater_equal, number, 1]] - - edges: [x1, x2, new_edge] # Create edges between x1 and x2 that have a new attribute with annotation given by the ann_fn - # x1 or x2 can be individual nodes as well instead of subsets - - ann_fn: [average, disruption] # Annotation function name with the label to use to get the annotations for the ann_fn. - # See annotation_functions.py for list of available functions. The name of that function comes here - # Could be [func_name, label] or [l, u] - - weights: [1, 1, 1, 0] # Weights for annotation function. Default is this. [w1=1, w2=1, w3=1, bias=0,] size of vector: [#clauses+1] - -# Start of next rule -rule_2: - target: disruption - target_criteria: - - [disruption, 0.0, 1.0] - delta_t: 1 - neigh_criteria: - - [node, [x1], disruption, [0.5, 1.0], [greater_equal, [percent, total], 50]] - - [node, [x1], gics-251010, [1,1], [greater_equal, number, 1]] - - [edge, [x2, target], strong, [0,1], [greater_equal, number, 1]] - ann_fn: [0.7, 1] diff --git a/pyreason/examples/hello-world/facts.yaml b/pyreason/examples/hello-world/facts.yaml deleted file mode 100755 index ee10bccb..00000000 --- a/pyreason/examples/hello-world/facts.yaml +++ /dev/null @@ -1,75 +0,0 @@ ---- -# List all facts below -nodes: - fact_1: - node: Mary # Name of the node - label: popular # Name of the label of the node - bound: [1, 1] # Bound of the label - static: false # Whether it applies to all timesteps and cannot change - t_lower: 0 # Starting time - t_upper: 2 # Ending time. - -edges: - fact_1: - source: Mary # Source of the edge - target: Cat # Target of the edge - label: owns # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_2: - source: Justin # Source of the edge - target: Cat # Target of the edge - label: owns # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_3: - source: Justin # Source of the edge - target: Dog # Target of the edge - label: owns # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_4: - source: John # Source of the edge - target: Dog # Target of the edge - label: owns # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_5: - source: Justin # Source of the edge - target: Mary # Target of the edge - label: friends # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_6: - source: John # Source of the edge - target: Justin # Target of the edge - label: friends # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - - fact_7: - source: John # Source of the edge - target: Mary # Target of the edge - label: friends # Name of the label of the node - bound: [1, 1] # Bound of the label - static: true - t_lower: 0 # Starting time - t_upper: 0 # Ending time. - \ No newline at end of file diff --git a/pyreason/examples/hello-world/friends.graphml b/pyreason/examples/hello-world/friends.graphml deleted file mode 100755 index bdae57ea..00000000 --- a/pyreason/examples/hello-world/friends.graphml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - -310person -281person -541person - -catpet -dogpet - - - - - - - - - - \ No newline at end of file diff --git a/pyreason/examples/hello-world/ipl.yaml b/pyreason/examples/hello-world/ipl.yaml deleted file mode 100755 index afbd8927..00000000 --- a/pyreason/examples/hello-world/ipl.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -ipl: null \ No newline at end of file diff --git a/pyreason/examples/hello-world/labels.yaml b/pyreason/examples/hello-world/labels.yaml deleted file mode 100755 index 69b9d059..00000000 --- a/pyreason/examples/hello-world/labels.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -# Labels that apply to all nodes -node_labels: - - popular - -# Labels that apply to all edges -edge_labels: - - owns - - friends - -# Labels that apply to specific nodes. In this case nothing -node_specific_labels: - -# Labels that apply to specific edges. In this case nothing -edge_specific_labels: diff --git a/pyreason/examples/hello-world/rules.yaml b/pyreason/examples/hello-world/rules.yaml deleted file mode 100755 index bf04f5ac..00000000 --- a/pyreason/examples/hello-world/rules.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -# All Rules come under here -rule_1: - target: popular # Target label - - target_criteria: # List of all target criteria - # All criteria come here in the form [label, lower_bound, upper_bound] - - [popular, 0, 1] - - delta_t: 1 # Delta t, time when this rule is applicable - - neigh_criteria: # List of all neighbour criteria in the form [criteria on node/edge, variable, label, [lower_bound, upper_bound], [equal/greater/less/greater_equal/less_equal, number/[percent, total/available], value]] - - [node, [x1], popular, [1,1], [greater_equal, number, 1]] - - [edge, [target, x1], friends, [1,1], [greater_equal, number, 1]] - - [edge, [x1, x2], owns, [1,1], [greater_equal, number, 1]] - - [edge, [target, x2], owns, [1,1], [greater_equal, number, 1]] - - ann_fn: [1,1] # Annotation function name or bound. See annotation_functions.py for list of available functions. The name of that function comes here - # Could be func_name or [l, u] \ No newline at end of file