directory-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [directory-discuss] Free Software Directory Database


From: Greg Rundlett (freephile)
Subject: Re: [directory-discuss] Free Software Directory Database
Date: Wed, 18 Jan 2017 16:01:35 -0500

On Wed, Jan 18, 2017 at 3:05 PM, Marta Rogers <address@hidden> wrote:
OK this seems to be interesting stuff.
I've found this page https://www.semantic-mediawiki.org/wiki/Help:RDF_export which seems to work (for a single page), here https://directory.fsf.org/wiki/Special:ExportRDF
To export everything, you should have a script called "dumpRDF.php" as mentioned here https://www.semantic-mediawiki.org/wiki/Help:RDF_export#Exporting_all_data

Could you look for this script? It might be the right way to export all data in RDF.


It dumps only semantic data, not the page contents itself.  I believe your original request was for page content.

So for example, it will tell you about intrinsic properties like when the page was created or modified, and other "built-in" properties like the categories that the page is in.

compare this URL: 
https://freephile.org/wiki/QualityBox

with this dump output:
php dumpRDF.php --page QualityBox

Writing OWL/RDF dump to  ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
        <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
        <!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
        <!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
        <!ENTITY wikiurl 'http://localhost/wiki/'>
]>

<rdf:RDF
        xmlns:rdf="&rdf;"
        xmlns:rdfs="&rdfs;"
        xmlns:owl ="&owl;"
        xmlns:swivt="&swivt;"
        xmlns:wiki="&wiki;"
        xmlns:category="&category;"
        xmlns:property="&property;">

        <owl:Ontology rdf:about="http://localhost/wiki/Special:ExportRDF/QualityBox">
                <swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2017-01-18T15:54:15-05:00</swivt:creationDate>
                <owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
        </owl:Ontology>
        <swivt:Subject rdf:about="http://freephile.org/wiki/Special:URIResolver/QualityBox">
                <rdf:type rdf:resource="http://freephile.org/wiki/Special:URIResolver/Category-3ACompany"/>
                <rdf:type rdf:resource="http://freephile.org/wiki/Special:URIResolver/Category-3AQualityBox"/>
                <rdf:type rdf:resource="http://freephile.org/wiki/Special:URIResolver/Category-3AWiki"/>
                <rdfs:label>QualityBox</rdfs:label>
                <swivt:page rdf:resource="http://localhost/wiki/QualityBox"/>
                <rdfs:isDefinedBy rdf:resource="http://localhost/wiki/Special:ExportRDF/QualityBox"/>
                <swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
                <swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2016-12-07T16:23:56Z</swivt:wikiPageModificationDate>
                <property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2457730.183287</property:Modification_date-23aux>
                <swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">QualityBox</swivt:wikiPageSortKey>
        </swivt:Subject>
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
        <owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
        <owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
        <!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->


Best regards,

Greg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]