Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1577

RIOT skips part of jsonld file (regression) and ignores @base

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Not A Problem
    • None
    • None
    • RIOT
    • None

    Description

      1. RIOT ignores "base":

      curl -s https://gist.githubusercontent.com/VladimirAlexiev/7b26962f9000a22fc25e8d180c716067/raw/7923f25be672294433dc95b48523573429781ecb/eg.jsonld|riot -syntax jsonld -formatted ttl
      ...
      <http://base/attack-pattern--00d0b012-8a03-410e-95de-5826bf542de6> 
        a stix:attack-pattern ;
      ...
      

      However, that jsonld includes base:

       "@base": "http://attack.mitre.org/enterprise/",
      

      and the jsonld playground http://tinyurl.com/yd25vasq does take it into account: in n3 output see URLs like

      <http://attack.mitre.org/enterprise/attack-pattern--00d0b012-8a03-410e-95de-5826bf542de6>
      

      2. Inexplicably, if I take the same jsonld content from a file, I get only triples rooted at blank nodes!
      This is a regression, it was not present in an older RIOT (I from a year ago, something like 3.1)

      curl -s https://gist.githubusercontent.com/VladimirAlexiev/7b26962f9000a22fc25e8d180c716067/raw/7923f25be672294433dc95b48523573429781ecb/eg.jsonld>eg.jsonld
      riot -syntax jsonld -formatted ttl eg.jsonld
      ...
      [ stix:external_id  "T1066" ;
        stix:source_name  "mitre-attack" ;
        stix:url          <https://attack.mitre.org/wiki/Technique/T1066>
      ] .
      

      If I just add an input redirection to the command line (<), I see a lot more triples.

      riot -syntax jsonld -formatted ttl < eg.jsonld
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vladimir.alexiev Vladimir Alexiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: