This wiki: The development wiki is a work area where Jazz development teams plan and discuss technical designs and operations for the projects at Jazz.net. Work items often link to documents here. You are welcome to browse, follow along, and participate. Participation is what Jazz.net is all about! But please keep in mind that information here is "as is", unsupported, and may be outdated or inaccurate. For information on released products, consult IBM Knowledge Center, support tech notes, and the Jazz.net library. See also the Jazz.net Terms of Use. Any documentation or reference material found in this wiki is not official product documentation, but it is primarily for the use of the development teams. For your end use, you should consult official product documentation (infocenters), IBM.com support artifacts (tech notes), and the jazz.net library as officially "stamped" resources. |
rdfs:label
and rdfs:comment
.
If it is likely that the URI may change over time - perhaps it is a user-definable custom property - then it is better to use an immutable URI to represent the property value in each instance of the relevant data, and use owl:sameAs
used to equate that immutable URI to one of the user's choosing.
@prefix acme: <http://acme.example.com/ns/cm#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . acme:High rdfs:label "High" ; rdfs:comment "High priority items should be done before any other items." . acme:Medium rdfs:label "Medium" ; rdfs:comment "Medium priority items should be done after high priority items." . acme:Low rdfs:label "Low" ; rdfs:comment "Low priority items should be done after medium priority items." .A work item might use these terms as follows:
<cr1> a oslc_cm:ChangeRequest ; dcterms:description "This is a high priority defect" ; jazz_cm:severity acme:High .Alternatively, and better in cases like this where the user might change the URI, the vocabulary and the work item should be modeled along these lines:
@prefix acme: <http://acme.example.com/ns/cm#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix : <http://clm1.acme.example.com:8080/clm-server/generated-uris/3a819573c6761bf8/> :12345678 owl:sameAs acme:High ; rdfs:label "High" ; rdfs:comment "High priority items should be done before any other items." . :12345679 owl:sameAs acme:Medium ; rdfs:label "Medium" ; rdfs:comment "Medium priority items should be done after high priority items." . :1234567a owl:sameAs acme:Low ; rdfs:label "Low" ; rdfs:comment "Low priority items should be done after medium priority items." .and:
<cr1> a oslc_cm:ChangeRequest ; dcterms:description "This is a high priority defect" ; jazz_cm:severity <http://clm1.acme.example.com:8080/clm-server/generated-uris/3a819573c6761bf8/12345678> .Note that
owl:sameAs
is symmetric. Query writers and report builders MUST NOT assume the vocabulary uses a specific direction for owl:sameAs
- that is, the vocabulary above could equally well have been written:
@prefix acme: <http://acme.example.com/ns/cm#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix : <http://clm1.acme.example.com:8080/clm-server/generated-uris/3a819573c6761bf8/> :12345678 rdfs:label "High" ; rdfs:comment "High priority items should be done before any other items." . :12345679 rdfs:label "Medium" ; rdfs:comment "Medium priority items should be done after high priority items." . :1234567a rdfs:label "Low" ; rdfs:comment "Low priority items should be done after medium priority items." . acme:High owl:sameAs :12345678 . acme:Medium owl:sameAs :12345679 . acme:Low owl:sameAs :1234567a .
rdf:value
) or the use of RDF collections.
This recommendation does not require that the RDF vocabulary for the enumerated values include an RDF class whose members are the enumerated values. The vocabulary MAY include an RDF class and each enumerated value MAY be defined to be of that type.
This recommendation does not provide a representation for the mappings from any context-dependent local display values to the URIs, and does not recommend that the local display values be indexed by query engines, e.g. Lifecycle Query Engine (LQE). Local display values allow for customization of the user interface of the tool in some context. When queries are executed on data that comes from multiple contexts, the query should be written in a context-independent way using RDF terms that define the meaning of the enumerated values.