-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (1) .- Knowledge Base  . 

nepomuk get videos rating

   0.2  

KDE Database

Score 53%
nepomuk get videos rating
zoom


Minimum required   KDE 4.x
Downloads:  99
Submitted:  Aug 18 2013
Updated:  Aug 29 2013

Description:

This script will search all the tv episodes and movies known to Nepomuk on your system, and update their rating property from either tvdb or tmdb

this script is an adaptation of the work done by Joerg Ehrichs (missingepisodechecker.py) as part of the webminer

I am new to python and sparql
improvements are very welcome

Enjoy,
Yehiel




Changelog:

0.2 minor improvement in Nepomuk query.
when not forcing ratings update filter entries with rating property.

0.1 first release
update movies from tmdb
update tv episodes from tvdb




LicenseLGPL
Source(getrating.py)
Send to a friend
Subscribe
Other  Apps  from yehielb
Report inappropriate content



-

 1111

 
 by overmind88 on: Aug 19 2013
 
Score 50%

Which icontheme?


Reply to this

-

 Re: 1111

 
 by yehielb on: Aug 19 2013
 
Score 50%

Neon by FRUiT


YB
Reply to this

-
.

 Query completely messed up

 
 by bitcrazy on: Aug 20 2013
 
Score 50%

Hello,

take a look at the sql queries in the script. They are messed up, I guess


If men could get pregnant, abortion would be a sacrament.
Reply to this

-
.

 Re: Query completely messed up

 
 by bitcrazy on: Aug 20 2013
 
Score 50%

Forget it. It is sparql. My fault.


If men could get pregnant, abortion would be a sacrament.
Reply to this

-
.

 Re: Re: Query completely messed up

 
 by yehielb on: Aug 20 2013
 
Score 50%

you remind me off my first response :) that was not so long ago...


YB
Reply to this

-
.

 Re: Re: Query completely messed up

 
 by yehielb on: Aug 20 2013
 
Score 50%

you remind me of my first response :) that was not so long ago...


YB
Reply to this

-
.

 No ratings added

 
 by bitcrazy on: Aug 28 2013
 
Score 50%

After running your script against 32 movies, no ratings were added, although your script states so.
I guess, it should manipulate the star rating?


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: No ratings added

 
 by yehielb on: Aug 29 2013
 
Score 50%

yes it should.

please attach the output if you can.

in the mean time try to run the following query to see if the are rating values to your movies:

'select ?url ?rating where {?e a nmm:Movie. ?e nao:rating ?rating.?e nie:url ?url}'


YB
Reply to this

-
.

 Re: Re: No ratings added

 
 by bitcrazy on: Aug 29 2013
 
Score 50%

select ?e ?ShowName ?SeasonNumer ?EpisodeNumber ?url where {?e a nmm:TVShow.?e nie:url ?url .?e nmm:series ?series .?series nie:title ?ShowName .?e nmm:episodeNumber ?EpisodeNumber .?e nmm:season ?SeasonNumer .}
0 episodes were updated

nepomukcmd query 'select ?e ?Title ?url where {?e a nmm:Movie.?e nie:url ?url .?e nie:title ?Title .}'
searching for: Pink Floyd: Live at Pompeii
url=file:///home/ds/MyVideos/Musik/Pink Floyd - Live At Pompeji.avi
rating=0
title = Pink Floyd: Live at Pompeii
online score = 8.9
unnamed app(2727)/nepomuk (library) Nepomuk::ResourceData::setProperty: "The name org.kde.nepomuk.DataManagement was not provided by any .service files"
---snip---
---snap---
32 movies were updated

Same here: 32 movies are known to nepomuk and none gets a rating. Maybe I'm missing something from nepomuk? And I have webminer installed.


If men could get pregnant, abortion would be a sacrament.
Reply to this

-
.

 Re: Re: Re: No ratings added

 
 by bitcrazy on: Aug 29 2013
 
Score 50%

nepomukcmd query 'select ?url ?rating where {?e a nmm:Movie. ?e nao:rating ?rating.?e nie:url ?url}'
Total Results: 0
Execution Time: 00:00:00.11
Total Time: 00:00:00.22


If men could get pregnant, abortion would be a sacrament.
Reply to this

-

 Re: Re: Re: No ratings added

 
 by yehielb on: Aug 29 2013
 
Score 50%

it seems like the line responsible for the error is:

resource.setRating(int(round(score)))

I don't know to tell you why it is not working. but please try the following in console:

qdbus org.kde.NepomukStorage /datamanagement


YB
Reply to this

-
.

 Re: No ratings added

 
 by bitcrazy on: Aug 30 2013
 
Score 50%

#>qdbus org.kde.NepomukStorage /datamanagement
method void org.kde.nepomuk.DataManagement.addProperty(QString resource, QString property, QDBusVariant value, QString app)
method void org.kde.nepomuk.DataManagement.addProperty(QStringList resources, QString property, QVariantList values, QString app)
method void org.kde.nepomuk.DataManagement.clearCache()
method QString org.kde.nepomuk.DataManagement.createResource(QString type, QString label, QString description, QString app)
method QString org.kde.nepomuk.DataManagement.createResource(QStringList types, QString label, QString description, QString app)
method QDBusRawType::a(sa{sv}) org.kde.nepomuk.DataManagement.describeResources(QStringList resources, int flags, QStringList targetParties)
method QString org.kde.nepomuk.DataManagement.exportResources(QStringList resources, QString mimeType, int flags, QStringList targetParties)
method void org.kde.nepomuk.DataManagement.importResources(QString url, QString serialization, int identificationMode, int flags, QString app)
method void org.kde.nepomuk.DataManagement.importResources(QString url, QString serialization, int identificationMode, int flags, QVariantMap additionalMetadata, QString app)
method void org.kde.nepomuk.DataManagement.mergeResources(QString resource1, QString resource2, QString app)
method void org.kde.nepomuk.DataManagement.mergeResources(QStringList resources, QString app)
method void org.kde.nepomuk.DataManagement.removeDataByApplication(QStringList resources, int flags, QString app)
method void org.kde.nepomuk.DataManagement.removeDataByApplication(int flags, QString app)
method void org.kde.nepomuk.DataManagement.removeProperties(QString resource, QString property, QString app)
method void org.kde.nepomuk.DataManagement.removeProperties(QStringList resources, QStringList properties, QString app)
method void org.kde.nepomuk.DataManagement.removeProperty(QString resource, QString property, QDBusVariant value, QString app)
method void org.kde.nepomuk.DataManagement.removeProperty(QStringList resources, QString property, QVariantList values, QString app)
method void org.kde.nepomuk.DataManagement.removeResources(QString resource, int flags, QString app)
method void org.kde.nepomuk.DataManagement.removeResources(QStringList resources, int flags, QString app)
method void org.kde.nepomuk.DataManagement.setProperty(QString resource, QString property, QDBusVariant value, QString app)
method void org.kde.nepomuk.DataManagement.setProperty(QStringList resources, QString property, QVariantList values, QString app)
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()


If men could get pregnant, abortion would be a sacrament.
Reply to this

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.