rename dependencies of knowledge web var
All checks were successful
studiorailgun/trpg/pipeline/head This commit looks good

This commit is contained in:
austin 2024-12-30 14:45:13 -05:00
parent 92c26b4f6c
commit f3f9711340
10 changed files with 23 additions and 28 deletions

View File

@ -1,6 +1,6 @@
{
"tag": "linguistics",
"children" : [
"dependencies" : [
"./data/webs/linguistics/name.json"
]
}

View File

@ -1,6 +1,6 @@
{
"tag": "philosophy",
"children" : [
"dependencies" : [
"./data/webs/philosophy/concept.json"
]
}

View File

@ -52,7 +52,7 @@
"child" : 9
}
},
"children" : [
"dependencies" : [
"./data/webs/root.json"
]
}

View File

@ -1,6 +1,6 @@
{
"tag" : "convo1",
"children" : [
"dependencies" : [
"./data/webs/physical-instances/characters/bert-self.json"
]
}

View File

@ -15,10 +15,14 @@
"id" : 0,
"name" : "instanceOf",
"parent" : 0,
"parentWeb" : "qualia",
"child" : 0
},
"1" : {
"id" : 1,
"name" : "instanceOf",
"parent" : 0,
"child" : 1
}
},
"crossRelations" : [
]
}
}

View File

@ -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"
]
}

View File

@ -71,7 +71,7 @@
"anchors" : {
"self" : 2
},
"children" : [
"dependencies" : [
"./data/webs/linguistics/linguistics.json",
"./data/webs/philosophy/philosophy.json",
"./data/webs/qualia/qualia.json"

View File

@ -1,6 +1,6 @@
{
"tag" : "web",
"children" : [
"dependencies" : [
"./data/webs/physical-instances/conversations/convo1.json"
]
}

View File

@ -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(){

View File

@ -1,7 +1,7 @@
{
"tag" : "top",
"selfId": 2,
"children" : [
"dependencies" : [
"./data/webs/root.json"
]
}