Data structure for projects and annotations #6
Replies: 8 comments
-
This is for each sample to be annotated |
Beta Was this translation helpful? Give feedback.
-
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"]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Project document "Project": {
"_id": "1234",
"name": "Android Annotations",
"organization": "ObjectId('1234')",
"organizer": "[email protected]",
"datasets": [
{
"userId": {
"$ref": "Users",
"$id": "ObjectId('1234')"
},
"annotations": [
{
"$ref": "Annotation",
"$id": "ObjectId('1234')"
},
{
"$ref": "Annotation",
"$id": "ObjectId('5678')"
},
{
"$ref": "Annotation",
"$id": "ObjectId('9012')"
}
]
}
]
}, |
Beta Was this translation helpful? Give feedback.
-
"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"]
}
] |
Beta Was this translation helpful? Give feedback.
-
"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'
]
}
}
}
] |
Beta Was this translation helpful? Give feedback.
-
"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')"
} |
Beta Was this translation helpful? Give feedback.
-
Organization: {
projects: {
datasets: Annotation[]
}[]
} |
Beta Was this translation helpful? Give feedback.
-
"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"
}, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
methods
andannotations
}Beta Was this translation helpful? Give feedback.
All reactions