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: Laura Morales
Subject: Re: [directory-discuss] Free Software Directory Database
Date: Sun, 16 Apr 2017 11:05:13 +0200

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

This does not seem to be true. Compare this page at the FSD 
https://directory.fsf.org/wiki/8sync with its RDF export 
https://directory.fsf.org/wiki/Special:ExportRDF/8sync everything is there. 
Look for these XML tags: rdfs:label, property:Short_description, 
property:Full_description, property:VCS_checkout_command, property:Interface, 
and so on...

Since the FSD is using SemanticWiki, you should have a file called 
"dumpRDF.php" [1] to export all items as RDF/XML. Could somebody please setup a 
cron job to run this script "dumpRDF.php" every once in a while (like once a 
week or so) and automatically make the dump available for download somewhere?
Not only would this be very handy, but people would also be more motivated to 
contribute to the directory if the data could actually be used outside of the 
directory itself.

Thank you all for the great work on the directory.

[1] https://www.semantic-mediawiki.org/wiki/Help:RDF_export#Exporting_all_data


----------------------------------------------
> From:Greg Rundlett (freephile)
> Subject:Re: [directory-discuss] Free Software Directory Database
> Date:Wed, 18 Jan 2017 16:01:35 -0500
> 
> 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 rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
>         <!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 wiki 'http://freephile.org/wiki/Special:URIResolver/'>
>         <!ENTITY category 
> 'http://freephile.org/wiki/Special:URIResolver/Category-3A'>
>         <!ENTITY property 
> 'http://freephile.org/wiki/Special:URIResolver/Property-3A'>
>         <!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:Class 
> rdf:about="http://freephile.org/wiki/Special:URIResolver/Category-3ACompany"; 
> />
>         <owl:Class 
> rdf:about="http://freephile.org/wiki/Special:URIResolver/Category-3AQualityBox";
>  />
>         <owl:Class 
> rdf:about="http://freephile.org/wiki/Special:URIResolver/Category-3AWiki"; />
>         <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://freephile.org/wiki/Special:URIResolver/Property-3AModification_date-23aux";
>  />
>         <owl:DatatypeProperty 
> rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey"; />
>         <!-- Created by Semantic MediaWiki, 
> https://www.semantic-mediawiki.org/ -->
> 
> 
> Best regards,
> 
> Greg
> 
> Greg Rundlett
> https://eQuality-Tech.com
> https://freephile.org



reply via email to

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