rename dependencies of knowledge web var
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good
This commit is contained in:
parent
92c26b4f6c
commit
f3f9711340
@ -1,6 +1,6 @@
|
||||
{
|
||||
"tag": "linguistics",
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/linguistics/name.json"
|
||||
]
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"tag": "philosophy",
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/philosophy/concept.json"
|
||||
]
|
||||
}
|
||||
@ -52,7 +52,7 @@
|
||||
"child" : 9
|
||||
}
|
||||
},
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/root.json"
|
||||
]
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"tag" : "convo1",
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/physical-instances/characters/bert-self.json"
|
||||
]
|
||||
}
|
||||
@ -15,10 +15,14 @@
|
||||
"id" : 0,
|
||||
"name" : "instanceOf",
|
||||
"parent" : 0,
|
||||
"parentWeb" : "qualia",
|
||||
"child" : 0
|
||||
},
|
||||
"1" : {
|
||||
"id" : 1,
|
||||
"name" : "instanceOf",
|
||||
"parent" : 0,
|
||||
"child" : 1
|
||||
}
|
||||
},
|
||||
"crossRelations" : [
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -6,19 +6,10 @@
|
||||
"name" : "qualia"
|
||||
}
|
||||
},
|
||||
"relations" : {
|
||||
"0" : {
|
||||
"id" : 0,
|
||||
"name" : "instanceOf",
|
||||
"parent" : 0,
|
||||
"child" : 0,
|
||||
"childWeb" : "color"
|
||||
}
|
||||
},
|
||||
"anchors" : {
|
||||
"qualia" : 0
|
||||
},
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/qualia/color.json"
|
||||
]
|
||||
}
|
||||
@ -71,7 +71,7 @@
|
||||
"anchors" : {
|
||||
"self" : 2
|
||||
},
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/linguistics/linguistics.json",
|
||||
"./data/webs/philosophy/philosophy.json",
|
||||
"./data/webs/qualia/qualia.json"
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"tag" : "web",
|
||||
"children" : [
|
||||
"dependencies" : [
|
||||
"./data/webs/physical-instances/conversations/convo1.json"
|
||||
]
|
||||
}
|
||||
@ -56,7 +56,7 @@ public class KnowledgeWeb {
|
||||
/**
|
||||
* Child webs
|
||||
*/
|
||||
List<String> children;
|
||||
List<String> dependencies;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@ -177,8 +177,8 @@ public class KnowledgeWeb {
|
||||
rVal.anchors.updateReferences(crossRelationLookupMap, rVal.getTag());
|
||||
}
|
||||
//parse children
|
||||
if(rVal.getChildren() != null && rVal.getChildren().size() > 0){
|
||||
for(String child : rVal.getChildren()){
|
||||
if(rVal.getDependencies() != null && rVal.getDependencies().size() > 0){
|
||||
for(String child : rVal.getDependencies()){
|
||||
KnowledgeWeb childWeb = KnowledgeWeb.recursivelyLoad(crossRelationLookupMap, foundTags, child);
|
||||
KnowledgeWeb.registerChildItems(crossRelationLookupMap, rVal, childWeb);
|
||||
}
|
||||
@ -281,11 +281,11 @@ public class KnowledgeWeb {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the child webs of this web
|
||||
* @return The list of child webs
|
||||
* Gets the list of webs upon which this depends
|
||||
* @return The list of dependency webs
|
||||
*/
|
||||
public List<String> getChildren(){
|
||||
return children;
|
||||
public List<String> getDependencies(){
|
||||
return dependencies;
|
||||
}
|
||||
|
||||
public String getTag(){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user