Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposed Plugin #423

Open
lawrencenull opened this issue Mar 15, 2021 · 5 comments
Open

Proposed Plugin #423

lawrencenull opened this issue Mar 15, 2021 · 5 comments

Comments

@lawrencenull
Copy link

I built out a Wikidata sparql query to help disambiguate types using the classified plugin as well as provide profiles and extras of entities.
Here is a fiddle for it, currently dumps results to console log: https://jsfiddle.net/lawrencenull/omb9dqrg/6/

It pulls in the following information at the moment in json format from wikidata:
q = enitity wikidata id
entity_title = name of entity
instanceOfLabel = basic typings (human, mountain, band, song, tv season, etc.)
spokenArticle = the spoken recording of the wikipedia article
britannicaID = the corresponding Encyclopedia Britannica entry (has a nice format like animal/pug, etc)
sportsTeamLabel = if the person plays for a sports team returns back the teams name
sportsTeamPositionLabel = position played for the sports team (pitcher, quarterback,etc)
longLat = longitude and latitude (automatically a place, every location in wikidata has coordinates)
homepage = official website
phoneNumber = phone number of the entity
wolfram = wolfram alpha identifier (
Entity["PlanetaryMoon", "Moon"],Entity["MusicAct", "Aerosmith::d6cz8"])
facebookID= facebook id
twitterID = twitter id
instagramID = instagram id
goodReadsAuthor = goodreads author id (writer)
imdbID = imdb id (returns back person, movie, tvshow IMDB uses a url prefix to tell the difference)
tmdbPersonID = person ID in The Movie Database
tmdbSeriesID = TV Series ID in The Movie Database
tmdbMovieID = Movie ID in The Movie Database
spotifyArtistID = spotify music act whether a band or person
spotifyAlbumID = music album in spotify
spotifyTrackID = song
soundcloudID= music act on spotify
itunesID = music act itunes id (same as apple music)
dzArtistID = music act on deezer
dzAlbumID= album on deezer
dzTrackID = track on deezer
youtubeChannelID = entity youtube channel. if a music act same as youtube music channel
youtubeVideoID = youtube video associated (usually the embeddable video id of a song)
musicBrainzID = musicbranz artist id
snapChatID = entity snapchat id
tikTokID = entity TikTok ID
linkedInID = entity linkedIn id

@spencermountain
Copy link
Owner

love it!
yeah, a sameAs plugin? PR welcome! Let me know if I can help, in any way at all.
Thank you for doing this, it's a great idea.

@lawrencenull
Copy link
Author

lawrencenull commented Mar 16, 2021

You're welcome. I'd have to take a look at your current plugins, I'm rather old, I usually just pull in what I need, manipulate it and render it to the page. Trying to learn some of the new stuff though. I thought this would be good since it's a single call and only takes less than 300-400 milliseconds to execute in most cases and provides a pretty good bit of information.

@lawrencenull
Copy link
Author

Here is the general use template I've started on, general idea for the infobox plugin is to have it render either to the sidebar with extended information or to the sheet popup for links with more limited information. Planning on having the NSFW plugin as an adult filter.

https://codepen.io/lawrencenull/full/bGBZRwv

@spencermountain
Copy link
Owner

ooh, i've never seen framework7 before - looks neat -
yeah, i worked for a startup that punted the nsfw filter, and regretted it!
are you making an ios app?
cheers

@lawrencenull
Copy link
Author

lawrencenull commented Mar 17, 2021

Eventually it'll end up as a PWA, really 2 PWAs. One will be just a front end to wikipedia, wikivoyage, etc. The other is for a friend's son, it'll only be able to display the articles from a google sheet containing the links. Going to still have the popup for links in the article, but won't display the article or be able to go outside of the sheets url list. Wanted to check the popup for content before displaying it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants