Data structure for projects and annotations #6
vijayantajain
started this conversation in
Ideas
Replies: 8 comments
|
This is for each sample to be annotated |
0 replies
|
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"]
}
}
} |
0 replies
|
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')"
}
]
}
]
}, |
0 replies
"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"]
}
] |
0 replies
"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'
]
}
}
}
] |
0 replies
"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')"
} |
0 replies
Organization: {
projects: {
datasets: Annotation[]
}[]
} |
0 replies
"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"
}, |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
methodsandannotations}All reactions