Giter Site home page Giter Site logo

wikia / ask-fandom Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 181 KB

Your semantic data-based assistant from Wikia

License: MIT License

Makefile 0.21% Python 65.87% CSS 25.10% JavaScript 5.56% HTML 3.26%
alexa fandom natural-language-processing semantic-data voice-assistant

ask-fandom's People

Contributors

macbre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

macbre

ask-fandom's Issues

Use WikiData / DBpedia as one of data sources

Search for entity

https://www.wikidata.org/w/api.php?action=wbsearchentities&search=Lionel%20Messi&language=en&limit=50

"Lionel Messi"
https://www.wikidata.org/wiki/Q615

{
    "searchinfo": {
        "search": "Lionel Messi"
    },
    "search": [
        {
            "repository": "",
            "id": "Q615",
            "concepturi": "http://www.wikidata.org/entity/Q615",
            "title": "Q615",
            "pageid": 899,
            "url": "//www.wikidata.org/wiki/Q615",
            "label": "Lionel Messi",
            "description": "Argentine association football player",
            "match": {
                "type": "label",
                "language": "en",
                "text": "Lionel Messi"
            }
        }
    ]
}

Get an entity

https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Lionel%20Messi&languages=en

DBpedia

http://dbpedia.org/page/Lionel_Messi

$ curl -s 'http://dbpedia.org/data/Lionel_Messi.ntriples' | grep -E "height|birth"
<http://dbpedia.org/resource/Lionel_Messi>	<http://dbpedia.org/ontology/birthDate>	"1987-6-24"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://dbpedia.org/resource/Lionel_Messi>	<http://dbpedia.org/ontology/birthPlace>	<http://dbpedia.org/resource/Rosario,_Santa_Fe> .
<http://dbpedia.org/resource/Lionel_Messi>	<http://purl.org/dc/terms/subject>	<http://dbpedia.org/resource/Category:1987_births> .
<http://dbpedia.org/resource/Lionel_Messi>	<http://dbpedia.org/ontology/birthDate>	"1987-06-24"^^<http://www.w3.org/2001/XMLSchema#date> .
<http://dbpedia.org/resource/Lionel_Messi>	<http://dbpedia.org/ontology/height>	"1.7"^^<http://www.w3.org/2001/XMLSchema#double> .
<http://dbpedia.org/resource/Lionel_Messi>	<http://dbpedia.org/ontology/Person/height>	"170.0"^^<http://dbpedia.org/datatype/centimetre> .

Use spaCy rule-based matching to extract knowledge from articles content

Add Q&A from answers for few wikis

Knowledge base

Storage

SQL

Object		Property	Value
================================================
Star Wars	composer	John Williams
dynamite	inventor	Alfred Nobel
objects:
  object_id: int
  object_name: text
  object_type: text [mapped after schema.org types]

values:
  object_id: int
  property: text
  value: text
  links_to: int [points to another object, NULL - value is not "linkable"]

RDF

@prefix wikipedia: <http://en.wikipedia.org/>
@prefix starwars: <http://starwars.fandom.com/>
@prefix dbo: <http://example.org/terms/>
@prefix schema: <http://schema.org/>

starwars:Star_Wars dbo:type schema:Movie ;
    schema:composer starwars:John_Williams .
wikipedia:Dynamite dbo:inventor wikipedia:Alfred_Nobel .

<http://dbpedia.org/resource/Semantic_Web>      <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>       <http://dbpedia.org/ontology/Software> .

https://starwars.fandom.com/wiki/John_Williams / https://schema.org/composer

JSON-LD

List 15 wikis cross-vertical

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.