Creating a drupal taxonomy from a SPARQL endpoint - drupal

I've been stuck with this for a while.
I want to create a live link between my Drupal7 site and a SKOS/RDF web thesaurus.
The web thesaurus has a SPARQL endpoint.
I already wrote a SPARQL statement that returns me everything I want to be in my taxonomy.
I just don't know what to do on the drupal site of this.
There are possibilities to build views based on SPARQL queries, but I have no idea how I might convert that to a proper taxonomy.
Modules that could probably help solving this riddle are:
https://www.drupal.org/project/sparql_views
https://www.drupal.org/project/web_taxonomy
I'm still a beginner when it comes to Drupal, so what I'd need is a rather detailed explanation.
But any help would be appreciated.
Thank you.

It looks like the Web Taxonomy module is what you are looking for. It can connect to your endpoint, help with autocomplete and create the taxonomy entry locally. You would need to create your own plugin for the module, but that doesn't look too difficult if you have a little bit of php knowledge. I looked at the DBPedia (https://www.drupal.org/project/wt_dbpedia) plugin and it is less than 150 loc. You could use that module as the starting point for your own work. If you don't know php, you might want to engage a developer to help out.

Related

Use API on a WordPress site

Hello stackoverflow friends 🙂
I want to make a portal in wordpress with the Zabbix API. Can I do it in the WordPress platform itself or do I have to write the code elsewhere?
Is this possible?
Does anyone ever tried to do this kind of stuff?
Is there a plugin to call APIs?
I really need an answer to know if it is possible to do this type of things or if I need to look for another type of CMS’s.
Thanks and good work!
Yes it is possible to use that API in WordPress. You can create it as a plugin. Here's more details on how to create a plugin, from the official documentation : https://developer.wordpress.org/plugins/
To make the API calls, have a look at the HTTP API : https://developer.wordpress.org/plugins/http-api/
To do database interactions(like saving the data to your db or fetching it), have a look at the wpdb class : https://developer.wordpress.org/reference/classes/wpdb/
If you want to run cron jobs (scheduled tasks), please have a look at the WP-Cron: https://developer.wordpress.org/plugins/cron/
There are several built functions, hooks and classes in WordPress that will aid you. Just go through the developer documentation provided by WordPress.

Creating a WordPress plugin that uses the HTTP API to connect to external API

I am trying to build a plugin that connects to an API to fetch a list of products and display information about each of them. I understand that I will most likely use the HTTP API provided from WordPress, but I found the documentation very vague and I don't know where to start. I searched for other materials on this matter but I couldn't find anything related to WP plugins that get data from external APIs.
Does anyone know any good resource about this or have any suggestion about what steps I should follow?
EDIT: What I am looking for is maybe an example of how the WP HTTP API is used in a WP Plugin. I have searched everywhere but all I can find is the WP REST API and that is something completely different from what I am looking for.
This post on Sitepoint is a bit old, but still does a pretty good job at explaining the different parts of the HTTP API: https://www.sitepoint.com/the-wordpress-http-api/
Just be sure to look up the functions mentioned there to see if they changed in the past four years.

Can drupal do this?

I am a php developer using mostly CakePHP, magento, and wordpress. I want to create a community driven website aimed at the volunteering community that will let users sign up, create profiles, add previous voluntary positions, let organisations sign up and post jobs, etc. Is this something that drupal can handle? Is this what drupal was built to do?
I'm just wondering how drupal deals with custom methods. Say I wanted to have a user request a reference from someone, I'd have to write methods that did this. Would that be possible in drupal?
I'd love to hear from anyone doing something similar!
Thanks,
Jonesy
Can Drupal do this?
Yes.
You may want to take a look at drupal commons a distribution of drupal with a lot of community features built in.
My answer is exactly the same as Jeremy... I have never done a project that has not benefited from drupal and its highly extendible nature.
It sounds like your project is quite large and is going to require a fair few modules to get going. I would have an extensive google for the different spec points you need to meet (for example: "drupal user profile module") and be sure to look at the related modules down the side.
I'm just wondering how drupal deals
with custom methods. Say I wanted to
have a user request a reference from
someone, I'd have to write methods
that did this. Would that be possible
in drupal?in drupal?
Drupal provides hooks which allow you to interact with most aspects of it. Custom functionality goes into modules and pretty much everything you will deal with is a module.
Lastly I can't find any examples, but I know that projects like yours have successfully been done using drupal!
Yes.
And If you are going to use the drupal 7 then it can be done very easily. You just have to manage some fields and just to assign a proper permissions to the users.
These tasks can be done with drupal. There are already module exists for User Profile, User Relationships, Groups etc. All post can be handled as node concept. User registration, user sign up all are available at the installation of Drupal. And it is extensible.
Thanks
-Rinku

wordpress java xml rpc library and/or client

Can anyone recommend an xml rpc library or client for wordpress using java?
I've run into migration hell moving a joomla install to wordpress.
Main reason for wanting to use rpc now is because i will be using it as my primary way of posting to the blog so i'm putting a simple client together and it needs to be configurable enough to allow me to port my joomla posts.
Some posts in future will just be reports generated from a java program as well so, its kinda essential i get something now if possible.
BTW if anyone understands the current wordpress table structure and can advise on how to do direct mysql inserts then i'm open to that too.
thanks in advance.
Have a look at http://code.google.com/p/wordpress-java , I've just added a few features.
I've just posted this link on a different WordPress question:
Database Description from WordPress Codex. That will help you understand WordPress' table structure.
Your project sounds pretty interesting. A quick google search shows some info on Java and XML-RPC: 1, 2 (javax.xml.rpc ).
Second link belongs to Apache XML-RPC, probably a good option for your project.

Joomla Blog/Wordpress Integration

I'm looking for a wordpress-like blog interface to put inside a Joomla hosted site. The admin interface of Joomla is quirky enough and hard enough to use that daily updates are infeasible.
What I am looking for is an easy-to-use posting interface that supports multiple users with different accounts/names, a tagging scheme, and easy find by date/user/tag functionality.
In particular I'm looking for a relatively easy-to-deploy, out-of-the-box solution, and would prefer not to hack rss feeds together or write too much custom code. I know there are several extensions out there but they all receive largely mixed reviews... Has anyone used any of these? Or has anyone had experience putting something like this together?
Well you could do this - have a wordpress installation. Get the users to post there and then use the RSS feed from it (or the XML RPC Blogging API) to update the Joomla installation. You will have to write the update piece once, but then all the headache is gone.
I'm not trying to be smart here, but if the admin interface of Joomla isn't working for you, aren't you doing yourself a disservice by trying to patch their UI instead of spending your time looking for a CMS that is easier to manage/a better fit for your user base?
Edit: All of the CMS's I've dealt with in ASP.NET are homegrown. However I'm looking into checking out Umbraco based on the recommendations of two well-respected friends. In the case you presented where you already have content in Joomla and a migration out to another CMS is going to be overkill, I think that vaibhav has got it right. You should look into setting up Wordpress or some other blogging engine and then simply have Joomla consume the content and display it in the Joomla site. I've not done it, but from what I remember of Joomla when I was looking at it, I believe that it would support this.
After doing a bit more research I decided to go with the open source MojoBlog. It was quite easy to install and configure and after a few stalls and hang ups that were resolved via perusal of their forums I was up and running. The edit interface is not ideal but it much better than Joomla admin, and it has multi-user-support, tag categorization, modules for viewing by tag, date, etc. Think it will suffice for my needs in the short term.
We at 'corePHP' have successfully integrated the WordPress and WordPress Multi-User blogging platforms into Joomla!. Please visit us to see what these feature-rich components have to offer you. https://www.corephp.com/wordpress/wordpress-integration-for-joomla-1.5.html
Happy Blogging,
Michael Pignataro
VP of Operations
www.corephp.com

Resources