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

Re: Advocating the use of RDF for Debian's published metadata - Was: Re: Proposal for additional metadata in Debian archives (DEP-11)



On 11-10-17 at 05:31pm, Olivier Berger wrote:
> If RDF/XML (as seems to be proposed by SPDX, to be verified once the 
> Linux Foundation site is back) is not suitable, then another format 
> would be great as long as it relies on some explicit prefix+suffix 
> combination, in order to allow for extensibility, for instance some 
> JSON variant of RDF like Turtle [1].

Just for clarification: Turtle is a human-friendly RDF serialization.

RDF can also be expressed in JSON or YAML but this is less common among 
semantic web developers and consumers.  Popular formats are XML/RDF, 
Turtle and HTMLa.


> In turtle representation format for RDF, one would have a document that
> looks like this :
>         @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
>         @prefix dep11: <http://www.debian.org/whatever/dep11#>.
>         @prefix debbugs: <http://www.debian.org/whatever/depxx#>.
>         @prefix spdx: <http://spdx.org/ontology#>.
>         
>         <http://packages.qa.debian.org/iceweasel> 
>           a dep11:DebianPackage;
>           dep11:application "Iceweasel";
>           dep11:package "iceweasel";
>           spdx:license "MPL-1.1"
>           debbugs:bugs <http://bugs.debian.org/iceweasel>.

Above is Turtle!


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


Reply to: