Skip to content

Semantic Tagging Plans

Arda Çınar edited this page Dec 1, 2016 · 1 revision
  • use wikidata
  • step 1: when tagging an element, use the wbsearchentities call to get an autocomplete. example: GET https://www.wikidata.org/w/api.php?action=wbsearchentities&search=tomato&format=json&language=en&uselang=en&type=item {"searchinfo":{"search":"tomato"},"search":[{"id":"Q20638126","concepturi":"http://www.wikidata.org/entity/Q20638126","url":"//www.wikidata.org/wiki/Q20638126","title":"Q20638126","pageid":22385536,"label":"tomato","description":"fruit, used as a vegetable","match":{"type":"label","language":"en","text":"tomato"}},{"id":"Q250918","concepturi":"http://www.wikidata.org/entity/Q250918","url":"//www.wikidata.org/wiki/Q250918","title":"Q250918","pageid":243552,"label":"Tomato","description":"firmware","match":{"type":"label","language":"en","text":"Tomato"}},{"id":"Q350045","concepturi":"http://www.wikidata.org/entity/Q350045","url":"//www.wikidata.org/wiki/Q350045","title":"Q350045","pageid":334504,"label":"Tomato","description":"Wikipedia disambiguation page","match":{"type":"label","language":"en","text":"Tomato"}},{"id":"Q3992593","concepturi":"http://www.wikidata.org/entity/Q3992593","url":"//www.wikidata.org/wiki/Q3992593","title":"Q3992593","pageid":3806528,"label":"Tomato","description":"album, Italia","match":{"type":"label","language":"en","text":"Tomato"}},{"id":"Q3992595","concepturi":"http://www.wikidata.org/entity/Q3992595","url":"//www.wikidata.org/wiki/Q3992595","title":"Q3992595","pageid":3806530,"label":"Tomato","description":"band, Italy","match":{"type":"label","language":"en","text":"Tomato"}},{"id":"Q3531007","concepturi":"http://www.wikidata.org/entity/Q3531007","url":"//www.wikidata.org/wiki/Q3531007","title":"Q3531007","pageid":3361750,"label":"Tomato","description":"record label","match":{"type":"label","language":"en","text":"Tomato"}},{"id":"Q7818544","concepturi":"http://www.wikidata.org/entity/Q7818544","url":"//www.wikidata.org/wiki/Q7818544","title":"Q7818544","pageid":7751084,"label":"Tomato","description":"community","match":{"type":"label","language":"en","text":"Tomato"}}],"search-continue":7,"success":1}
  • step 2: after the autocomplete, have the tag have 2 stored properties, a display name and an underlying tag name. Send both to backend, only show the display name to user.
  • step 3: for relating tags; have the score be 10x for tag directly matching the data and x for indirectly matching the data. send the SPARQL queries to https://query.wikidata.org/sparql?format=json&query=... example query for indirect matches: SELECT DISTINCT ?rel ?item ?itemLabel WHERE { wd:<original item id> wdt:P31 ?group . ?neigh wdt:P31 ?group . ?neigh ?rel ?item . FILTER(?rel != rdfs:label && ?rel != schema:description && ?rel != skos:altLabel ) . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } }

Team Members:

#Project: #

  • Requirements
  • [API Docs](API Docs)
  • Plan
  • Themes/Features
  • Personas
  • [User Stories](User Stories and Acceptance Criteria)
  • [Domain Analysis](Domain Analysis)
  • [Responsibility Assignment Matrix](Responsibility Assignment Matrix)
  • [Project Communication Plan](Project Communication Plan)
  • [Test Cases](Test Cases)
  • [Setting Development Environment](Setting Development Environment)

#Diagrams: #

  • [Use Cases and Use Case Diagram](Use Cases)
  • [Use Case Drafts](Use Case Drafts)
  • [Class Diagram](Class Diagram)
  • [Activity Diagram](Activity Diagram)
  • [Sequence Diagrams](Sequence Diagrams)

#Mockups: #

  • [Web Mockups](Web Mockups)
  • [Mobile Mockups](Mobile Mockups)

#Meetings: # Spring Semester

#Milestones: # Spring Semester

  • [Milestone-1 Report](Milestone-1 Report)

      Fall Semester
    
  • [Milestone-1 Report](Milestone-2 Report)

  • [Milestone-2 Report](Milestone-3 Report)

  • [Milestone-3 Report](Milestone-4 Report)

#Group Works: #

#Documentations: #

Clone this wiki locally