Class Wikidata

    • Constructor Detail

      • Wikidata

        public Wikidata()
    • Method Detail

      • setGenreOntology

        public void setGenreOntology​(GenreOntology genreOntology)
      • getDBpedia

        public DBpedia getDBpedia()
      • setDBpedia

        public void setDBpedia​(DBpedia dBpedia)
      • lookup

        public List<AudioSong> lookup​(AudioSong song)
                               throws IOException
        Description copied from interface: UberMusic
        Looks up metadata for a song.
        Specified by:
        lookup in interface UberMusic
        Parameters:
        song - song (query by example)
        Returns:
        reference songs, empty list, if the metadata is unavailable
        Throws:
        IOException - IOException
      • getEntity

        public Entity getEntity​(String id)
                         throws IOException,
                                org.json.simple.parser.ParseException
        Retrieve a WikiData entity.
        Parameters:
        id - id
        Returns:
        an entity
        Throws:
        IOException
        org.json.simple.parser.ParseException