Skip to content

Commit

Permalink
matchTriples
Browse files Browse the repository at this point in the history
  • Loading branch information
zheyxu committed Jul 17, 2024
1 parent e2be5a0 commit 5a30ca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ main() {

// Print out predicates of triples having donna
print('-------\nDonna predicates values:');
for (Triple tri in g.tripleValues(donna.value)) {
for (Triple tri in g.matchTriples(donna.value)) {
print(tri.pre.value);
}
}
4 changes: 2 additions & 2 deletions lib/src/graph.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ class Graph {
/// Example usage:
/// ```dart
/// final value = 'exampleValue';
/// final matchingTriples = values(value);
/// final matchingTriples = matchTriples(value);
/// print(matchingTriples);
/// ```
Set<Triple> tripleValues(String value) {
Set<Triple> matchTriples(String value) {
// Initialize an empty set to store the matching triples.
Set<Triple> matchingTriples = {};

Expand Down

0 comments on commit 5a30ca9

Please sign in to comment.