Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10350

Make relation graphs use core directly (not Jena) (except annotations)

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.7.1
    • Component/s: Relations
    • Impact type:
      Configuration format change
    • Upgrade notes:
      Hide

      If you wish to keep using Jena for some of the relation graphs, use the following contributions:

      <require>org.nuxeo.ecm.platform.relations.default.graph</require>

      <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
      point="graphs">
      <graph name="default" type="jena-or-core">
      <option name="doctype">DefaultRelation</option>
      <option name="backend">sql</option>
      <option name="databaseType">
      ${org.nuxeo.ecm.sql.jena.databaseType}
      </option>
      <option name="datasource">jdbc/nxrelations-default-jena</option>
      <option name="databaseDoCompressUri">false</option>
      <namespaces>
      <namespace name="rdf">
      http://www.w3.org/1999/02/22-rdf-syntax-ns#
      </namespace>
      <namespace name="dcterms">http://purl.org/dc/terms/</namespace>
      <namespace name="nuxeo">http://www.nuxeo.org/document/uid/</namespace>
      </namespaces>
      </graph>
      </extension>

      <require>org.nuxeo.ecm.platform.comment.service.default.graph</require>

      <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
      point="graphs">
      <graph name="documentComments" type="jena-or-core">
      <option name="doctype">CommentRelation</option>
      <option name="backend">sql</option>
      <option name="databaseType">
      ${org.nuxeo.ecm.sql.jena.databaseType}
      </option>
      <option name="datasource">jdbc/comment-relations</option>
      <option name="databaseDoCompressUri">false</option>
      <namespaces>
      <namespace name="comment">http://www.nuxeo.org/comments/uid</namespace>
      <namespace name="isCommentFor">
      http://www.nuxeo.org/predicates/isCommentFor
      </namespace>
      <namespace name="document">http://www.nuxeo.org/document/uid</namespace>
      </namespaces>
      </graph>
      </extension>

      <require>org.nuxeo.ecm.platform.publisher.relations.contrib</require>

      <extension target="org.nuxeo.ecm.platform.relations.services.RelationService"
      point="graphs">
      <graph name="publication" type="jena-or-core">
      <option name="doctype">PublicationRelation</option>
      <option name="backend">sql</option>
      <option name="databaseType">
      ${org.nuxeo.ecm.sql.jena.databaseType}
      </option>
      <option name="datasource">java:/nxrelations-default-jena</option>
      <namespaces>
      <namespace name="rdf">
      http://www.w3.org/1999/02/22-rdf-syntax-ns#
      </namespace>
      <namespace name="dcterms">http://purl.org/dc/terms/1.1/</namespace>
      <namespace name="nuxeo">http://www.nuxeo.org/document/uid/</namespace>
      <namespace name="pTree">http://www.nuxeo.org/publication/tree/</namespace>
      </namespaces>
      </graph>
      </extension>

      Show
      If you wish to keep using Jena for some of the relation graphs, use the following contributions: <require>org.nuxeo.ecm.platform.relations.default.graph</require> <extension target="org.nuxeo.ecm.platform.relations.services.RelationService" point="graphs"> <graph name="default" type="jena-or-core"> <option name="doctype">DefaultRelation</option> <option name="backend">sql</option> <option name="databaseType"> ${org.nuxeo.ecm.sql.jena.databaseType} </option> <option name="datasource">jdbc/nxrelations-default-jena</option> <option name="databaseDoCompressUri">false</option> <namespaces> <namespace name="rdf"> http://www.w3.org/1999/02/22-rdf-syntax-ns# </namespace> <namespace name="dcterms"> http://purl.org/dc/terms/ </namespace> <namespace name="nuxeo"> http://www.nuxeo.org/document/uid/ </namespace> </namespaces> </graph> </extension> <require>org.nuxeo.ecm.platform.comment.service.default.graph</require> <extension target="org.nuxeo.ecm.platform.relations.services.RelationService" point="graphs"> <graph name="documentComments" type="jena-or-core"> <option name="doctype">CommentRelation</option> <option name="backend">sql</option> <option name="databaseType"> ${org.nuxeo.ecm.sql.jena.databaseType} </option> <option name="datasource">jdbc/comment-relations</option> <option name="databaseDoCompressUri">false</option> <namespaces> <namespace name="comment"> http://www.nuxeo.org/comments/uid </namespace> <namespace name="isCommentFor"> http://www.nuxeo.org/predicates/isCommentFor </namespace> <namespace name="document"> http://www.nuxeo.org/document/uid </namespace> </namespaces> </graph> </extension> <require>org.nuxeo.ecm.platform.publisher.relations.contrib</require> <extension target="org.nuxeo.ecm.platform.relations.services.RelationService" point="graphs"> <graph name="publication" type="jena-or-core"> <option name="doctype">PublicationRelation</option> <option name="backend">sql</option> <option name="databaseType"> ${org.nuxeo.ecm.sql.jena.databaseType} </option> <option name="datasource">java:/nxrelations-default-jena</option> <namespaces> <namespace name="rdf"> http://www.w3.org/1999/02/22-rdf-syntax-ns# </namespace> <namespace name="dcterms"> http://purl.org/dc/terms/1.1/ </namespace> <namespace name="nuxeo"> http://www.nuxeo.org/document/uid/ </namespace> <namespace name="pTree"> http://www.nuxeo.org/publication/tree/ </namespace> </namespaces> </graph> </extension>

      Description

      When Core relation graphs were introduced, a compatibility mode was kept so that Core graph mode is used only if no Jena graph is already present an non-empty for each graph.

      For 5.7, switch to using Core directly. Upgrade notes will list the config to use to keep using Jena if really needed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.