Skip to content

Data structure for projects and annotations #1

Description

@vijayantajain
  • Id (from the uploaded .json file)
  • data (array of {methods and annotations}
  • labels {array of string values}
  • annotated_by
  • verified_by

Activity

  1. vijayantajain commented on Mar 6, 2021

    @vijayantajain
    CollaboratorAuthor

    This is for each sample to be annotated

  2. changed the title [-]Labelling Tasks[/-] [+]Labelling Code Segments[/+] on Mar 6, 2021
  3. DylanBulmer commented on Mar 6, 2021

    @DylanBulmer
    Collaborator

    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"]
          }
        }
      }
  4. DylanBulmer commented on Mar 6, 2021

    @DylanBulmer
    Collaborator

    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')"
              }
            ]
          }
        ]
      },
  5. vijayantajain commented on Mar 6, 2021

    @vijayantajain
    CollaboratorAuthor
    "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"]
        }
    
    ]
  6. vijayantajain commented on Mar 6, 2021

    @vijayantajain
    CollaboratorAuthor
    "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'
                    ]
                       
                }
        }
            
        }
    
    ]
  7. changed the title [-]Labelling Code Segments[/-] [+]Data structure for projects and annotations[/+] on Mar 6, 2021
  8. DylanBulmer commented on Mar 6, 2021

    @DylanBulmer
    Collaborator
      "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')"
      }
  9. DylanBulmer commented on Mar 6, 2021

    @DylanBulmer
    Collaborator
    Organization: {
      projects: {
        datasets: Annotation[]
      }[]
    }
  10. vijayantajain commented on Mar 6, 2021

    @vijayantajain
    CollaboratorAuthor
    "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"
        },
  11. locked and limited conversation to collaborators on Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions