diff --git a/data/webs/philosophy/knowledge/ambiguity.json b/data/webs/philosophy/knowledge/ambiguity.json new file mode 100644 index 0000000..9256f7f --- /dev/null +++ b/data/webs/philosophy/knowledge/ambiguity.json @@ -0,0 +1,10 @@ +{ + "tag" : "ambiguity", + "nodes" : { + "0" : { + "comment" : "The concept of ambiguity", + "id" : 0, + "name" : "ambiguity" + } + } +} \ No newline at end of file diff --git a/data/webs/philosophy/knowledge/knowledge.json b/data/webs/philosophy/knowledge/knowledge.json new file mode 100644 index 0000000..7a09d6b --- /dev/null +++ b/data/webs/philosophy/knowledge/knowledge.json @@ -0,0 +1,23 @@ +{ + "tag" : "knowledge", + "nodes" : { + "0" : { + "comment" : "The concept of knowledge", + "id" : 0, + "name" : "knowledge" + }, + "1" : { + "comment" : "The concept of the known", + "id" : 1, + "name" : "known" + }, + "2" : { + "comment" : "The concept of the unknown", + "id" : 2, + "name" : "unknown" + } + }, + "dependencies" : [ + "./data/webs/philosophy/knowledge/ambiguity.json" + ] +} \ No newline at end of file diff --git a/data/webs/philosophy/philosophy.json b/data/webs/philosophy/philosophy.json index 5a8c1d6..93fcbcb 100644 --- a/data/webs/philosophy/philosophy.json +++ b/data/webs/philosophy/philosophy.json @@ -2,6 +2,7 @@ "tag": "philosophy", "dependencies" : [ "./data/webs/philosophy/concept.json", + "./data/webs/philosophy/knowledge/knowledge.json", "./data/webs/philosophy/person/person.json", "./data/webs/philosophy/person/self.json", "./data/webs/philosophy/quality/quality.json" diff --git a/data/webs/physics/physics.json b/data/webs/physics/physics.json new file mode 100644 index 0000000..f11c969 --- /dev/null +++ b/data/webs/physics/physics.json @@ -0,0 +1,6 @@ +{ + "tag" : "physics", + "dependencies" : [ + + ] +} \ No newline at end of file diff --git a/data/webs/root.json b/data/webs/root.json index b80f408..d88f485 100644 --- a/data/webs/root.json +++ b/data/webs/root.json @@ -17,7 +17,8 @@ } }, "dependencies" : [ + "./data/webs/philosophy/philosophy.json", "./data/webs/linguistics/linguistics.json", - "./data/webs/philosophy/philosophy.json" + "./data/webs/physics/physics.json" ] } \ No newline at end of file diff --git a/src/main/java/org/studiorailgun/knowledge/Node.java b/src/main/java/org/studiorailgun/knowledge/Node.java index df50e92..68cbc26 100644 --- a/src/main/java/org/studiorailgun/knowledge/Node.java +++ b/src/main/java/org/studiorailgun/knowledge/Node.java @@ -20,6 +20,11 @@ public class Node { */ String name; + /** + * An optional comment on a node + */ + String comment; + /** * Constructor @@ -31,16 +36,30 @@ public class Node { this.name = name; } - + /** + * Gets the name of the node + * @return The name + */ public String getName() { return name; } - + /** + * Gets the id of the node + * @return The id + */ public int getId() { return id; } + /** + * Gets the comment on the node + * @return The comment + */ + public String getComment(){ + return comment; + } + }