How to distinguish page types in RDF

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to distinguish page types in RDF

Laura Morales
For example in the case of the FSD, consider the pages

- https://directory.fsf.org/wiki/8sync
- https://directory.fsf.org/wiki/Category/Biology

how can I distinguish all the pages for the actual software (for example 8sync) vs the other categories pages (for example category/biology)? Both of them have the same "type" predicate,

<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://semantic-mediawiki.org/swivt/1.0#Subject>

is there any other predicate that I can look for?


I'll also share these two queries, if they can be useful...

===================================================================

select *
where { <http://directory.fsf.org/wiki/Special:URIResolver/8sync> ?predic ?object }

    [
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } ,
        "object": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#Subject" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Category-3AEntry" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/2000/01/rdf-schema#label" } ,
        "object": { "type": "literal" , "value": "8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/2000/01/rdf-schema#isDefinedBy" } ,
        "object": { "type": "uri" , "value": "https://directory.fsf.org/wiki/Special:ExportRDF/8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#page" } ,
        "object": { "type": "uri" , "value": "https://directory.fsf.org/wiki/8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "value": "0" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" } ,
        "object": { "type": "literal" , "value": "en" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY0c0daaff252ae17c787a9f88fdd1a907" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY9659f77dd77a5dfdb7d004b573f98353" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY8010c749adc9fad58a34475b90599f18" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY98e3691acd3817415c447a0a84ef07e2" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERYf33813519d14c94a008ee84b5dfc84ae" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY7b974e7fab68ebe82e72ac1c11745cf9" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERYaf2c1b1da345241afae7221df99c2326" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY674b9c2b0a49e7e0ba2ff8773c6075c4" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERY5ffba73dea69e194e17692ff039ce509" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_QUERYaa7f092c723201b4e4b41d6f790b0cbf" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#dateTime" , "value": "2017-01-09T17:49:10Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457763.2424769" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" } ,
        "object": { "type": "literal" , "value": "8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AUse" } ,
        "object": { "type": "literal" , "value": "software-development" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ADocumentation_note" } ,
        "object": { "type": "literal" , "value": "Included" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AEmail" } ,
        "object": { "type": "uri" , "value": "mailto:[hidden email]" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AFull_description" } ,
        "object": { "type": "literal" , "value": "'''8sync''' (pronounced eight-sync) is an asynchronous programming library for [[GNU Guile]]. It makes use of delimited continuations to avoid a mess of callbacks, resulting in clean, easy-to-read, non-blocking code." }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHomepage_URL" } ,
        "object": { "type": "uri" , "value": "https://www.gnu.org/software/8sync/" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AInterface" } ,
        "object": { "type": "literal" , "value": "library" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AIs_GNU" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#boolean" , "value": "true" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALast_review_by" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Genium" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALast_review_date" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#date" , "value": "2017-01-09Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALicense" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/LGPLv3orlater" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALicense_note" } ,
        "object": { "type": "literal" , "value": "http://git.savannah.gnu.org/cgit/8sync.git/tree/COPYING" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALicense_verified_by" } ,
        "object": { "type": "literal" , "value": "Genium" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALicense_verified_date" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#date" , "value": "2016-12-23Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AName" } ,
        "object": { "type": "literal" , "value": "GNU 8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AReal_name" } ,
        "object": { "type": "literal" , "value": "Christopher Allan Webber" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARelated_projects" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Asyncio" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_audience" } ,
        "object": { "type": "literal" , "value": "Developer" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_kind" } ,
        "object": { "type": "literal" , "value": "VCS Repository Webview" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_kind" } ,
        "object": { "type": "literal" , "value": "Download" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_kind" } ,
        "object": { "type": "literal" , "value": "Homepage" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_URL" } ,
        "object": { "type": "literal" , "value": "https://savannah.gnu.org/projects/8sync/" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_URL" } ,
        "object": { "type": "literal" , "value": "http://git.savannah.gnu.org/cgit/8sync.git" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AResource_URL" } ,
        "object": { "type": "literal" , "value": "http://ftpmirror.gnu.org/8sync/" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARevisiontimestamp" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#dateTime" , "value": "2017-01-09T13:49:10Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARevisionuser" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/User-3AGenium" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARole" } ,
        "object": { "type": "literal" , "value": "Maintainer" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AShort_description" } ,
        "object": { "type": "literal" , "value": "Asynchronous programming for Guile" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ASubmitted_by" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Genium" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ASubmitted_date" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#date" , "value": "2016-12-23Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AUser_level" } ,
        "object": { "type": "literal" , "value": "advanced" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVCS_checkout_command" } ,
        "object": { "type": "literal" , "value": "git clone git://git.sv.gnu.org/8sync.git" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVersion_date" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#date" , "value": "2017-01-08Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVersion_download" } ,
        "object": { "type": "uri" , "value": "https://ftp.gnu.org/gnu/8sync/8sync-0.4.1.tar.gz" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVersion_identifier" } ,
        "object": { "type": "literal" , "value": "0.4.1" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVersion_status" } ,
        "object": { "type": "literal" , "value": "alpha" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AProgramming-2Dlanguage" } ,
        "object": { "type": "literal" , "value": "guile" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALast_review_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457762.5" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ALicense_verified_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457745.5" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3APage_has_default_form" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Entry" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARevisionid" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "40441" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARevisiontimestamp-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457763.0758102" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ARuns-2Don" } ,
        "object": { "type": "literal" , "value": "GNU/Linux" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3ASubmitted_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457745.5" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AVersion_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2457761.5" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_467d80641d1bca15f38539fef34121b0" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_fc2a9d42b4c3e90c99b4002437573795" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_fe357c33e7297e63a9a478bc679d2d63" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_69a6798aa920e60ae009a55497a0924f" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_65bb34e816353042e9d6b108002d5a52" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_subobject" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/8sync-23_c7359ad781b38886063bbe308c6051a3" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AGNU_package_identifier" } ,
        "object": { "type": "literal" , "value": "8sync" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AExtension_of" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Guile" }
      }
    ]

===================================================================

select *
where { <http://directory.fsf.org/wiki/Special:URIResolver/Category/Biology> ?predic ?object }

    [
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" } ,
        "object": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#Subject" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/2000/01/rdf-schema#label" } ,
        "object": { "type": "literal" , "value": "Category/Biology" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://www.w3.org/2000/01/rdf-schema#isDefinedBy" } ,
        "object": { "type": "uri" , "value": "https://directory.fsf.org/wiki/Special:ExportRDF/Category/Biology" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#page" } ,
        "object": { "type": "uri" , "value": "https://directory.fsf.org/wiki/Category/Biology" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#integer" , "value": "0" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" } ,
        "object": { "type": "literal" , "value": "en" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Category/Biology-23_QUERY0cec6e8137b04ce4d386647f5b7171c7" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Category/Biology-23_QUERY947836e908df838c73ec17b9f654c9cd" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Category/Biology-23_QUERYae044f6618086ade8cb33367f1f9eb57" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AHas_query" } ,
        "object": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Category/Biology-23_QUERYa4ec145d178b0b8c0410423a870395fa" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#dateTime" , "value": "2013-07-19T18:11:48Z" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://directory.fsf.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" } ,
        "object": { "type": "literal" , "datatype": "http://www.w3.org/2001/XMLSchema#double" , "value": "2456493.2581944" }
      } ,
      {
        "predic": { "type": "uri" , "value": "http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" } ,
        "object": { "type": "literal" , "value": "Category/Biology" }
      }
    ]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user