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?
Special:RDFImport not working?
No mater what I paste into Special:RDFImport, I get returned to the page
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?
MediaWiki 1.21.5 (98e2d46) PHP 5.3.3-7+squeeze18 (cgi-fcgi) MySQL 5.1.73-1
Semantic MediaWiki (Version 126.96.36.199) 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.
Ok, thanks for the info! I'll try to see if I can reproduce this! // Cheers
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.. :-/
Can you confirm that the error you're getting is the same?
Yes, exactly the same.
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
!!!N.B!!!: Please if possible - use the GitHub Issue Tracker to post issues, feedback and questions!
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.
How to get rid of "equivalent URI" statement?
i would like this not showing up each time i import something new. How would we do this?
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! :)
Importing problems. Too much data causes unavailability to import?
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?
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.
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!
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
Just a ping that the importRdf.php script is now included in the latest RDFIO release!
Updating database for RDFIO
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?
Mmm..i am having the same error.
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 :
So? What to do?
Do we have to wait for SMW 2.3?
Same here...I get this error-message every time I try to edit an article.
RDFIO has now been updated to work with SMW 2.4, and installs via Composer. Please see the updated and much simplified installation instructions: https://github.com/rdfio/RDFIO#installation
Media Wiki Appliance default passwords
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
Very sorry about this! The README is now updated with this information. See further down under the "How to" heading:
Kind Regards // Samuel
Undertanding RDFIO for imports
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#isDefinedBy http://localhost:85/mediawiki-1.24.1/index.php/Especial:ExportRDF/Categor%C3%ADa:Categoria15
(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.
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.
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
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?
Git installs to arc2 directory
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/';
Has anyone managed to make RDFIO work with SMW 1.9? An out of the box installation complains about not finding
/extensions/RDFIO/stores/SMW_ARC2Store.php. Has someone been able to make a patch?