EntityAttributes Graph - MessageOnTap/MessageOnTap_API GitHub Wiki

Here is the Graph HashMap Key developers may use.

Types

  • Person
  • Image
  • Place
  • Event
  • Browser Search
  • Browser Visit
  • Flight
  • Ticket
  • Order
  • Document

Usage

import edu.cmu.chimps.messageontap_api.Tag;
import edu.cmu.chimps.messageontap_api.ParseTree;
import edu.cmu.chimps.messageontap_api.EntityAttributes;

Node newNode = new Node();
newNode.addTag(EntityAttributes.Graph.Person.Name);

Summary

Person

Field Key Name Description
Type Graph.Person.TYPE "person"
Name Graph.Person.NAME Person's name
Phone Number Graph.Person.PHONE_NUMBER Person's phone number
Work Phone Number Graph.Person.WORK_PHONE_NUMBER Person's work phone number
Home Phone Number Graph.Person.HOME_PHONE_NUMBER Person's home number
Email Graph.Person.EMAIL_ADDRESS Person's email address
Contact Graph.Person.CONTACT_ID Id in PersonalGraph Contact
Node id Graph.Person.NODE_ID Node id in ParseTree

Image

Field Key Name Description
Type Graph.Image.TYPE "image"
Uri Graph.Image.URI Uri in Android System
Taken time Graph.Image.TAKEN_TIME Time when picture was took
Node id Graph.Image.NODE_ID Node id in ParseTree

Place

Field Key Name Description
Type Graph.Place.Type "place"
Name Graph.Place.NAME Place Name
GPS Coordinate Graph.Place.GPS_COORDINATE Place Coordinates
Street Address Graph.Place.STREET_ADDRESS Street name and No.
PLACE_CATEGORY Graph.Place.PLACE_CATEGORY The visited places
Node id Graph.Place.NODE_ID Node id in ParseTree

Event

Field Key Name Description
Type Graph.Event.Type "event"
Name Graph.Event.NAME Event Name
Start time Graph.Event.START_TIME The start time of event
End time Graph.Event.END_TIME The end time of event
Event category Graph.Event.EVENT_CATEGORY Mars don't know what is this
Calendar Graph.Event.CALENDAR_ID Id in Calendar
Time Graph.Event.TIME Time
Node id Graph.Event.NODE_ID Node id in ParseTree

Browser Search

Field Key Name Description
Type Graph.BrowserSearch.TYPE "browser_search"
Title Graph.BrowserSearch.TITLE The website search keyword
Node id Graph.BrowserSearch.NODE_ID Node id in ParseTree

Browser Visit

Field Key Name Description
Type Graph.BrowseVisit.TYPE "browser_search"
Title Graph.BrowseVisit.TITLE Website Title
URL Graph.BrowseVisit.URL Website URL
Node id Graph.BrowserVisit.NODE_ID Node id in ParseTree

Flight

Field Key Name Description
Type Graph.Flight.TYPE "flight"
Arrival airport Graph.Flight.ARRIVAL_AIRPORT The arrival airport of flight
Arrival time Graph.Flight.ARRIVAL_TIME The arrival time of flight
Departure airport Graph.Flight.DEPARTURE_AIRPORT The departure airport of flight
Departure time Graph.Flight.DEPARTURE_TIME The departure time of flight
Flight number Graph.Flight.FLIGHT_NUMBER Flight number
Flight seller Graph.Flight.FLIGHT_SELLER Flight seller
Node id Graph.Flight.NODE_ID Node id in ParseTree

Ticket

Field Key Name Description
Type Graph.Ticket.TYPE "ticket"
Number Graph.Ticket.NUMBER Ticket's number
Seat Graph.Ticket.SEAT The seat number of ticket
Owner Graph.Ticket.OWNER The Owner of the ticket
Description Graph.Ticket.DESCRIPTION The detailed description of ticket
Node id Graph.Ticket.NODE_ID Node id in ParseTree

Order

Field Key Name Description
Type Graph.Order.TYPE "order"
Number Graph.Order.NUMBER Order's number
Seller Graph.Order.SELLER The seller of the order
Node id Graph.Order.NODE_ID Node id in ParseTree

Document

Field Key Name Description
Type Graph.Document.TYPE "document"
ID Graph.Document.ID The id of document
Title Graph.Document.TITLE The title of document
Created time Graph.Document.CREATED_TIME The create time of document
Modified time Graph.Document.MODIFIED_TIME The last modified time of document
Description time Graph.Document.DESCRIPTION_TIME Mars has no idea what is this
Size Graph.Document.SIZE The size of the document
Node id Graph.Document.CREATED_TIME Node id in ParseTree

Other Fields

  • Graph.SYNTAX_TREE
  • Graph.CARD_LIST
  • CURRENT_MESSAGE_CONTACT_NAME
  • CURRENT_MESSAGE_RELATIVE_POSITION
  • CURRENT_MESSAGE_EMBEDDED_TIME
  • CURRENT_MESSAGE_TEXT_BOX_ACCESSIBILITY_NODE_INFO
  • PMS.TRIGGER_SOURCE