gdbassett / moirai

1 stars 1 forks source link

Server graph update validation #6

Closed gdbassett closed 11 years ago

gdbassett commented 11 years ago

Add a function that validates the metadata in a graph update including: start & end date CPT label class validate metadata properties (not multiple, etc) confidence construct classification (PII, proprietary, public, etc change all text to lower case to facilitate finding things etc

gdbassett commented 11 years ago

List should include "Comments: List should not include "construct" and "classification" as both are attributes.

Recommend validation only allow a single additional property beyond the set list. Handler should split out into multiple nodes, replicating edges associated with the initial node.

gdbassett commented 11 years ago

For attributes, a label would count as it's metadata.

Confidence should be an edge property. (Alternately, it could be an attribute, CPT, or dictionary on the node.)

gdbassett commented 11 years ago

for matching, metadata should be a dipole ("type", "value). Graph should reject all else.

gdbassett commented 11 years ago

Probably don't need end date.

gdbassett commented 11 years ago

CPTs should be set to an "OR" CPT if none exist.

gdbassett commented 11 years ago

Fixed in https://github.com/gdbassett/moirai/blob/dev-ms1/server/moiraiGraphUpdate.py.

May want to validate the CPT string as well.

gdbassett commented 11 years ago

Closing. Will add CPT as it's own issue