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

Turtle serializer: generate "paragraphs"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Jena 4.0.0
    • None
    • RIOT
    • None

    Description

      2. "Paragraphs"
      (this applies only to non-streaming mode, i.e. --formatted=turtle).
      By "paragraphs" I mean statements with the same subject, which RIOT separates by an empty line (i.e. that also matches the common definition of paragraph in text processing tools like Emacs).
      If you sort them, in a well-constructed ontology that will output first the ontology, then Classes, the properties: which GREATLY aids understanding.
      Eg see attached the FIBO BusinessRegistries ontology reformatted in this way (the comment lines are added manually).

      ## ontology
      
      fibo-fbc-fct-breg:  a        owl:Ontology ;
              rdfs:label           "Business Registries Ontology" ;
              dct:license          "http://www.omg.org/techprocess/ab/SpecificationMetadata/MITLicense"^^xsd:anyURI ;
              sm:contentLanguage   "http://www.omg.org/spec/ODM/"^^xsd:anyURI , "http://www.w3.org/standards/techs/owl#w3c_all"^^xsd:anyURI ;
              sm:copyright         "Copyright (c) 2015 EDM Council, Inc.\nCopyright (c) 2015 Object Management Group, Inc." ;
              sm:fileAbbreviation  "fibo-fbc-fct-breg" ;
              sm:filename          "BusinessRegistries.rdf" ;
              owl:imports          fibo-fnd-aap-agt: , fibo-fnd-utl-av: , fibo-fbc-fct-ra: , fibo-be-le-fbo: , fibo-fnd-law-jur: , fibo-fnd-utl-bt: , fibo-fnd-rel-rel: , fibo-fnd-plc-adr: , lcc-cr: , fibo-fnd-dt-fd: ;
              owl:versionIRI       <http://www.omg.org/spec/EDMC-FIBO/FBC/20150801/FunctionalEntities/BusinessRegistries/> .
      
      ## classes
      
      fibo-fbc-fct-breg:BusinessRegistrationAuthority
              a                            owl:Class ;
              rdfs:label                   "business registration authority" ;
              rdfs:subClassOf              fibo-fbc-fct-ra:RegistrationAuthority ;
              rdfs:subClassOf              [ a                         owl:Restriction ;
                                             owl:onClass               fibo-fnd-law-jur:Jurisdiction ;
                                             owl:onProperty            fibo-fnd-rel-rel:isGovernedBy ;
                                             owl:qualifiedCardinality  "1"^^xsd:nonNegativeInteger
                                           ] ;
              rdfs:subClassOf              [ a                            owl:Restriction ;
                                             owl:minQualifiedCardinality  "1"^^xsd:nonNegativeInteger ;
                                             owl:onClass                  fibo-fbc-fct-breg:BusinessRegistry ;
                                             owl:onProperty               fibo-fnd-rel-rel:manages
                                           ] ;
              fibo-fnd-utl-av:adaptedFrom  "http://www.leiroc.org/publications/gls/lou_20140620.pdf"^^xsd:anyURI ;
              skos:definition              "a governmental registration authority that is responsible for maintaining a registry of business entities for a particular jurisdiction" .
      ...
      
      ## properties
      
      fibo-fbc-fct-breg:hasAddressLine1
              a                owl:DatatypeProperty ;
              rdfs:domain      fibo-fbc-fct-breg:RegistrationAddress ;
              rdfs:label       "has address line 1" ;
              rdfs:range       fibo-fnd-utl-bt:text ;
              fibo-fnd-utl-av:definitionOrigin
                      "http://www.leiroc.org/publications/gls/lou_20140620.pdf"^^xsd:anyURI ;
              skos:definition  "the first line of the street address" .
      ...
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: