me RDF sestidi: Difference between revisions

From Lojban
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
  {mi djica lo nu tavla}
  {mi djica lo nu tavla}


'''n3 syntax:'''
'''Turtle:'''


  @prefix : <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111995/#ralju:> .
  @prefix : <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#ralju:> .
  @prefix g: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111995/#gismu:> .
  @prefix g: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#gismu:> .
  @prefix c: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111995/#cmavo:> .
  @prefix c: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#cmavo:> .
  @prefix cc: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111995/#cmavo-ckaji:> .
  @prefix cc: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#cmavo-ckaji:> .
  @prefix x: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111995/#xulta:> .
  @prefix x: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#xulta:> .


  [                            # main bridi
  [                            # main bridi

Revision as of 12:50, 17 February 2015

This proposal is now in a very rough draft state.

This is a proposal for encoding Lojban texts as a set of RDF triples (possibly quads). The primal intent behind this is to allow precise decomposition of Lojban structures into simple predicates. Other uses could arise in future.

This document presumes on reader working knowledge of following semantic web topics: RDF and Turle. (It is possible what named graphs and notations to represent them, e.g. Notation 3 and/or TriG, will be needed later). It should be noted that this conversion is not yet intended to be sematic web technology, though it is possible in future.

The examples of conversion will be given in two forms: Turtle (in this version) and simplified representation of RDF triples, with prefixes substituded for full URIs.

Example of conversion:

{mi djica lo nu tavla}

Turtle:

@prefix : <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#ralju:> .
@prefix g: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#gismu:> .
@prefix c: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#cmavo:> .
@prefix cc: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#cmavo-ckaji:> .
@prefix x: <http://mw.lojban.org/index.php?title=me_RDF_sestidi&oldid=111996/#xulta:> .
[                             # main bridi
 :sesumti-fa c:mi ;
 :bridi g:djica ;
 :sesumti-fe [                # zo'e of lo
   a c:zohe ;
   :sumti-fa [                # bridi of lo
     :bridi [                 # abstraction
       a c:nu ;
       cc:sucta [             # embedded bridi
         :bridi g:tavla
       ]
     ]
   ]
 ] ;
 x:cuscu [
   :sesumti-fa <http://example.com/person1> ;
   :sesumti-fi <http://example.com/person2> ;
   :sesumti-fo <http://example.com/group/lojban/post/1>
 ]
] .

RDF triples:

_:b1 :sesumti-fa c:mi .
_:b1 :bridi g:djica .
_:b1 :sesumti-fe _:z1 .
_:z1 rdf:type c:zohe .
_:z1 :sumti-fa _:b2 .
_:b2 :bridi _:n1 .
_:n1 rdf:type c:nu .
_:n1 cc:sucta _:b3 .
_:b3 :bridi g:tavla .
_:b1 x:cuscu _:x1 .
_:x1 :sesumti-fa <http://example.com/person1> .
_:x1 :sesumti-fi <http://example.com/person2> .
_:x1 :sesumti-fo <http://example.com/group/lojban/post/1>

Next actions:

1. Explain the example step by step.

2. Add scope operators to the example.