chunker

1. nquad

1.1. basic

{
    "name": "alice"
}
  subject: "c.1"
predicate: "name"
 objectId: 
objectVal: "alice"
   facets:

1.2. empty

{
    "name": null
}
{
    "name": {}
}
{
    "name": []
}
(no nquads found)

1.3. object pointer

{
    "friend": {
        "name": "charlie"
    }
}
  subject: "c.1"
predicate: "friend"
 objectId: "c.2"
objectVal:
   facets:

  subject: "c.2"
predicate: "name"
 objectId: 
objectVal: "charlie"
   facets:

1.4. array

{
    "friend": ["charlie", "bob"]
}
  subject: "c.1"
predicate: "friend"
 objectId:
objectVal: "charlie"
   facets:
  
  subject: "c.1"
predicate: "friend"
 objectId: 
objectVal: "bob"
   facets:

1.4.1. array pointer

{
    "friend": [
        {
            "name": "charlie"
        },
        {
            "name": "bob"
        }
    ]
}
  subject: "c.1"
predicate: "friend"
 objectId: "c.2"
objectVal:
   facets:

  subject: "c.1"
predicate: "friend"
 objectId: "c.3"
objectVal:
   facets:
  
  subject: "c.2"
predicate: "name"
 objectId: "charlie"
objectVal:
   facets:
  
  subject: "c.3"
predicate: "name"
 objectId: "bob"
objectVal:
   facets:

1.5. uid

{
    "uid": "1000",
    "name": "charlie"
}
  subject: "1000"
predicate: "name"
 objectId: 
objectVal: "charlie"
   facets:

1.5.1. uid pointer

{
    "friend": {
        "uid": "1000",
        "name": "charlie"
    }
}
  subject: "c.1"
predicate: "friend"
 objectId: "1000"
objectVal:
   facets:
  
  subject: "1000"
predicate: "name"
 objectId: 
objectVal: "charlie"
   facets:

2. facet

2.1. scalar

{
    "friend": "charlie",
    "friend|close": true
}
  subject: "c.1"
predicate: "friend"
 objectId: 
objectVal: "charlie"
   facets: [
        key: "close",
        val: []byte{0x01},
    valType: bool
   ]

2.1.1 scalar array pointer

{
    "name": "alice",
    "friend": [
        {
            "name": "charlie",
            "friend|close": true
        }
    ]
}
  subject: "c.1"
predicate: "name"
 objectId: 
objectVal: "alice"
   facets: 
  
  subject: "c.2"
predicate: "name"
 objectId: 
objectVal: "charlie"
   facets: 

  subject: "c.1"
predicate: "friend"
 objectId: "c.2"
objectVal:
   facets: [
        key: "close",
        val: []byte{0x01},
    valType: bool
   ]

2.2. map

{
    "friend": ["charlie", "bob", "josh"],
    "friend|from": {
        "0": "college",
        "2": "work"
    }
}
  subject: "c.1"
predicate: "friend"
 objectId: 
objectVal: "charlie"
   facets: [
        key: "from",
        val: []byte("college"),
    valType: string
   ]
  
  subject: "c.1"
predicate: "friend"
 objectId: 
objectVal: "bob"
   facets: 
  
  subject: "c.1"
predicate: "friend"
 objectId: 
objectVal: "josh"
   facets: [
        key: "from",
        val: []byte("work"),
    valType: string
   ]