Extension talk:RDFIO

Jump to navigation Jump to search

About this board

Rotsee (talkcontribs)

No mater what I paste into Special:RDFImport, I get returned to the page $1/Special:RDFImport, and (quite naturally) get an error message. Does anyone here happen to know what the problem might be?

SHL (talkcontribs)

Oops, sounds strange.

Could you please report your version of MediaWiki, Semantic MediaWiki, RDFIO, PHP and operating system, as well as any more details on how you installed RDFIO? I.e, did you install the ARC2 library properly?

Rotsee (talkcontribs)


MediaWiki  1.21.5 (98e2d46)
PHP        5.3.3-7+squeeze18 (cgi-fcgi)
MySQL      5.1.73-1
Semantic MediaWiki         (Version
RDFIO                      (Version 1.9.0 alpha)
Wiki ObjectModel Extension (Version 1.0.2 alpha)

on a Debian server. I cloned the extensions from https://github.com/samuell/RDFIO.git. As for ARC2, I got no error messages, and Special:ARC2Admin says Store is already set up.. Not sure what else to check for.

SHL (talkcontribs)

Ok, thanks for the info! I'll try to see if I can reproduce this! // Cheers

Rotsee (talkcontribs)

Upgrading to MediaWiki 1.23alpha, SMW 1.9.2 alpha, RDFIO 1.10.0 alpha didn't help. I guess there must be something in my config, but I can't figure out how to troubleshoot.. :-/

Zahara (talkcontribs)

Can you confirm that the error you're getting is the same?

Rotsee (talkcontribs)

Yes, exactly the same.

SHL (talkcontribs)

RDFIO is now updated with many fixes, dropped and updated dependencies and simplified installation. Please see the installation section here for how to set up the latest version: https://github.com/rdfio/RDFIO#installation

Reply to "Special:RDFImport not working?"

!!!N.B!!!: Please if possible - use the GitHub Issue Tracker to post issues, feedback and questions!

SHL (talkcontribs)

Please from now on use the GitHub issue tracker to post issues, feedback and questions! Activity on this talk page is too easily missed by the RDFIO developers, and we find it much easier to get an overview of current issues and discussions, on GitHub.

Reply to "!!!N.B!!!: Please if possible - use the GitHub Issue Tracker to post issues, feedback and questions!"

How to get rid of "equivalent URI" statement?

2 (talkcontribs)

Hello there,

i would like this not showing up each time i import something new. How would we do this?

SHL (talkcontribs)

Hi, could you please explain your problem with some more information, like a screenshot? Also, which version of RDFIO, SMW and MW are you using? If you want, you can post an issue to the github issue tracker: https://github.com/rdfio/RDFIO/issues ... where it will be easier to include pictures and discuss the issue in more detail! :)

Reply to "How to get rid of "equivalent URI" statement?"

Importing problems. Too much data causes unavailability to import?

00maiser00 (talkcontribs)

I am trying to make an RDF import, but whenever i put too many statements, it seems RDFIO is unavailable to handle it. After like 3 minutes, page turns white and i see that only like 15 statemets were correctly imported.

If i do not import much it works (with about 20).

Atm i am trying with like 250, and seems it is processing still(about 5 minutes done) so seems things are going smoothly.

Problem is i want to import about....2000. Any parameter that i can config. to do so, or is it a bug which happens when there is a lot of info going?

SHL (talkcontribs)

Hi! Thanks for testing it out! This is unfortunately a known problem, and has to do with the fact that a page write in MediaWiki is quite a heavy task, since text has to be indexed, many tables updated etc.

We have been thinking about adding a batch import feature, that would import a number of triples per "run", and then either refresh the page to continue, or that it is completely done from the commandline, but we haven't got there yet.

00maiser00 (talkcontribs)

Ok thanks! That would certainly work. I had to do the import in about 6 times, of about 250 statements each. Hope i can export data directly from mySQL to reause it on other databases and do not have to do this each time!

SHL (talkcontribs)

Have a look at the new commandline batch import script:


If you have commandline access to the wiki, that might help, especially if you can change the timeout settings for commandline php to not time out too fast. The import probably is still equally slow, but hopefully can be done with a longer timeout this way.

Even better, if you have access to batch XML import in MediaWiki, is to use the new rdf2smw tool, which converts RDF n-triples to a MediaWiki XML dump:


(If you need to convert from RDF/XML to N-Triples, you could use the rdf2rdf tool, for example:https://github.com/knakk/rdf2rdf ).

Plan to add support for more formats in rdf2smw shortly too.

Best // Samuel

SHL (talkcontribs)

Just a ping that the importRdf.php script is now included in the latest RDFIO release!

Reply to "Importing problems. Too much data causes unavailability to import?"
Miles Fides (talkcontribs)

Hello there, I tried to install this extension on my Wiki (Version 1.24), which is already running with Semantic MediaWiki (Version 2.2) for a while now. Because of that, I need to update my database after installing the RDFIO extension. Using the runJobs.php, I get this Error-Message:

"PHP Fatal error: Call to a member function mapDataItemToElement() on null in [...]/extensions/SemanticMediaWiki/includes/export/SMW_Exporter.php on line 593"

This Error-Message only appears while the RDFIO-Extension is activated... Any suggestions or clues?

Thanks :) (talkcontribs)

Mmm..i am having the same error.

00maiser00 (talkcontribs)

This is related with SMW version. Since version 2.2, RDFIO needs to be actualized by creator (since it is not longer working with actual implementation). He has been warned by SMW dev already as stated by MWJames :


Silkwood (talkcontribs)

So? What to do?

Do we have to wait for SMW 2.3?

SHL (talkcontribs)
Mafi9 (talkcontribs)

Same here...I get this error-message every time I try to edit an article.

SHL (talkcontribs)
Reply to "Updating database for RDFIO" (talkcontribs)

I installed the Virtual machine appliance image using Virtualbox which worked fine. What I couldn't find were the passwords or logins for Linux, Linux root, mediawiki, semantic media wiki, MySQL. Does anyone know these? Thanks

SHL (talkcontribs)
Reply to "Media Wiki Appliance default passwords"
00maiser00 (talkcontribs)

Hey there!

This might see a bit more complex than usual questions, but i would really apreciate the help.

At the moment i have to import a lof of classes and subclasses, and i am seeing that after for example creating a category in smw (called "Categoria15"), i get this at the rdfio endpoint(?s ?p ?o):

http://ExerWiki/mediawiki-1.24.1/index.php/Especial:URIResolver/Categor-C3-ADa-3ACategoria15 http://www.w3.org/2000/01/rdf-schema#label Categoria15

http://ExerWiki/mediawiki-1.24.1/index.php/Especial:URIResolver/Categor-C3-ADa-3ACategoria15 http://www.w3.org/2000/01/rdf-schema#isDefinedBy http://localhost:85/mediawiki-1.24.1/index.php/Especial:ExportRDF/Categor%C3%ADa:Categoria15

http://ExerWiki/mediawiki-1.24.1/index.php/Especial:URIResolver/Categor-C3-ADa-3ACategoria15 http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://www.w3.org/2002/07/owl#Class

(Apart from the triples coming from Swivt ontology)

So i undertand, in order to create a class an import it to SMW in it´s natural format i would need at least this 3 rdfs statemets, declaring the label of the URI, which thing is defined by and saying is a class.

Aftewards i would have to do something similar to declare that the class is subclass of another.

Which would be the statements to use, to import a class with that format which was called for example..."category10"?

I do not know if it is clear what i am asking for.


SHL (talkcontribs)

Hi 00maiser00!

I think these are things that are created by Semantic MediaWiki automatically when a Category page is created, and should not need to be created, to create a class.

Basically a class is detected as soon as a "http://www.w3.org/1999/02/22-rdf-syntax-ns#type", or a "http://www.w3.org/2000/01/rdf-schema#subClassOf property" are seen.

If you are interested in the details, this can be seen in detail in the code, in the highlighted part here: https://github.com/samuell/RDFIO/blob/master/classes/parsers/RDFIO_ARC2ToWikiConverter.php#L40-L62

00maiser00 (talkcontribs)

For what i detect, after we make an import of an statement (for example):

Car [(rdf)issubclassof] Vehicle

The process that they follow is:

1º RDFIO gives a URI for car and vehicle

2º Semantic mediawiki gives a URI to car and vehicle

3º Semantic mediawiki says the uris of RDFIO and SMW are the same.

4º Semantic mediawiki makes the declaration(indicating if it is subclass, class....) using the SMW URI.

Would be lovely to merge 4 steps in 3, as clearly, one should not be relevant (regarding user, perhaps it is needed for implementation) as feels pages with "equivalentURI" type statements.

Would this be possible from RDFIO side? Or would it involve changing SMW?

Reply to "Undertanding RDFIO for imports"
2A02:8424:3950:C600:B83F:3C76:CA20:A6AC (talkcontribs)

Hi, I tried to install according to your instructions given here -- https://www.mediawiki.org/wiki/Extension:RDFIO --(with Mediawiki with semantic media wiki 2.0, but I guess the version here is unrelevant ) and it did not work at first.
I had used git to install arc2, and the reason is that there is a mismatch in the name of the arc directory created, with respect to what is suggested.

Actually the command "git clone https://github/semsoll/arc.git" creates an arc2 directory instead of arc.

So I had to change, in the file RDFIO.php located in mediawiki/extensions/RDFIO, the variable $smwgARC2Path =$smwgIP . '/libs/arc/'; into the following : $smwgARC2Path = $smwgIP . '/libs/arc2/';

Reply to "Git installs to arc2 directory"
Rotsee (talkcontribs)

Has anyone managed to make RDFIO work with SMW 1.9? An out of the box installation complains about not finding /extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php in /extensions/RDFIO/stores/SMW_ARC2Store.php. Has someone been able to make a patch?

Reply to "SMW 1.9"
There are no older topics