Repository navigation
Data structure for projects and annotations #1
Copy link
Copy link
Closed
Description
Activity
This is for each sample to be annotated
Possible annotation document
"Annotation": { "_id": "mongo id", "dataId": "id", "verified_by": { "$ref": "Users", "$id": "ObjectId('1234')" }, "type": "code-labeling", "projectId": { "$ref": "Project", "$id": "ObjectId('1234')" }, "annotated_by": { "$ref": "Users", "$id": "ObjectId('1234')" }, "data": { "dataID": "string", "methods": [ { "methodID": "static void foo1() {}", "highlight": { "start": "", "end": "", "color": "" } }, { "methodID": "static void foo1() {}", "highlight": { "start": "", "end": "", "color": "" } } ], "language": "javascript", "labels": { "privacy_practice": [ { "label": "process", "sub-label": "modifying" }, { "label": "collection", "sub-label": "data-write" } ], "purpose": [ { "label": "advertisement", "sub-label": "first-party-advertisement" } ], "information_accessed": ["location", "network"] } } }
Project document
"Project": { "_id": "1234", "name": "Android Annotations", "organization": "ObjectId('1234')", "organizer": "vijayanta.jain@maine.edu", "datasets": [ { "userId": { "$ref": "Users", "$id": "ObjectId('1234')" }, "annotations": [ { "$ref": "Annotation", "$id": "ObjectId('1234')" }, { "$ref": "Annotation", "$id": "ObjectId('5678')" }, { "$ref": "Annotation", "$id": "ObjectId('9012')" } ] } ] },
"dataset": [ { "dataID": "string", "methods": [ { methodID: "static void foo1() {} highlight: { start, end, color, } }, { methodID: "static void foo1() {} highlight: { start, end, color, } } ... ] "language": "javascript", "labels": ["Authentication"] }, { "dataID": "string2", "methods": [ { methodID: "static void foo1() {} highlight: { start, end, color, } }, { methodID: "static void foo1() {} highlight: { start, end, color, } } ... ] "language": "javascript", "labels": ["Authentication"] } ]
"dataset": [ { "dataID": "string", "methods": [ { methodID: "static void foo1() {} highlight: { start, end, color, } }, { methodID: "static void foo1() {} highlight: { start, end, color, } } ... ] "language": "javascript", "labels": ["Authentication"] }, { "dataID": "string2", "methods": [ { methodID: "static void foo1() {} highlight: { start, end, color, } }, { methodID: "static void foo1() {} highlight: { start, end, color, } } ... ] "language": "javascript", "labels": { 'privacy_practice': [ { 'label': 'process', 'sub-label': 'modifying' }, { 'label': 'collection', 'sub-label': 'data-write' } ... ], 'purpose': [ { 'label': 'advertisement', 'sub-label': 'first-party-advertisement' }, ], 'information_accessed': [ 'location', 'network' ] } } } ]
- changed the title
[-]Labelling Code Segments[/-][+]Data structure for projects and annotations[/+]on Mar 6, 2021 "Annotation": { "_id": "mongo id", "dataId": "id", "type": "code-labeling", "data": { "methods": [ { "methodID": "static void foo1() {}", "highlight": { "start": "", "end": "", "color": "" } }, { "methodID": "static void foo1() {}", "highlight": { "start": "", "end": "", "color": "" } } ], "language": "javascript", "labels": { "privacy_practice": [ { "label": "process", "sub-label": "modifying" }, { "label": "collection", "sub-label": "data-write" } ], "purpose": [ { "label": "advertisement", "sub-label": "first-party-advertisement" } ], "information_accessed": ["location", "network"] } } }, "verified_by": { "$ref": "Users", "$id": "ObjectId('1234')" }, "projectId": { "$ref": "Project", "$id": "ObjectId('1234')" }, "annotated_by": { "$ref": "Users", "$id": "ObjectId('1234')" }
Organization: { projects: { datasets: Annotation[] }[] }
"android.location.LocationManager;addGpsStatusListener": { "id": "android.location.LocationManager;addGpsStatusListener", "class_name": "android.location.LocationManager", "method_name": "addGpsStatusListener", "permissions_required": [ "ACCESS_FINE_LOCATION" ], "personal_information_collected": [ "Location" ], "api_level": "null", "sdk_level": "null", "is_android_api": "True", "method_called": "null", "api_description": "Adds a GPS status listener.", "related_api": "null" },
- locked and limited conversation to collaborators
on Mar 13, 2021
Metadata
Metadata
Assignees
Labels
No labels
methodsandannotations}