You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: elmclient/examples/OSLCQUERY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Of course there are things about a query that can't be elided - you still have t
26
26
Overview - OSLC Query
27
27
=====================
28
28
29
-
For full details on the OSLC Query specification see https://docs.oasis-open.org/oslc-core/oslc-query/v3.0/oslc-query-v3.0.html
29
+
For full details on the OSLC Query specification see https://docs.oasis-open-projects.org/oslc-op/query/v3.0/os/oslc-query.html
30
30
31
31
IBM DOORS Next (DN), Engineering Test Manager (ETM), Engineering Workflow Manager (EWM) and Global Configuration Management (GCM) have supported OSLC query for many years now.
Copy file name to clipboardExpand all lines: elmclient/examples/dn_simple_modulestructure.py
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
# example of accessing the module structure API https://jazz.net/wiki/bin/view/Main/DNGModuleAPI
7
7
# also see https://jazz.net/wiki/bin/view/Main/DNGModuleApiOverview
8
8
# prints the module content with indenting corresponding to headings and calculated section number
9
-
# NOTE NOTE NOTE the section number calculation has not been fully verified/checked - it seems to work after superficial inspection
9
+
# NOTE NOTE NOTE the section number calculation has not been fully verified/checked - it seems to work after superficial inspection but you probably should verify its correctness yourself
10
10
11
-
# provide on the commandline the id of an artifact in the same component and a new binding for it will be created in the structure - location hardcoded!
11
+
# if you provide on the commandline the id of an artifact in the same component then a new binding for it will be created in the structure - location hardcoded!
12
12
13
13
importcsv
14
14
importlogging
@@ -346,7 +346,7 @@ def iterator():
346
346
raiseException( "Root not at start of structure!" )
347
347
# toinsert is already prepared
348
348
# get the etag
349
-
response,etag=c.execute_get_rdf_xml(
349
+
response,etag=c.execute_get_json(
350
350
structure_u,
351
351
cacheable=False,
352
352
headers={
@@ -394,6 +394,7 @@ def iterator():
394
394
395
395
# get the structure again afer the update
396
396
modstructure_j=c.execute_get_json(structure_u, cacheable=False, headers={'vvc.configuration': config_u,'DoorsRP-Request-Type':'public 2.0', 'OSLC-Core-Version': None, 'Configuration-Context': None}, intent="Retrieve module structure (JSON) after update" ) # have to remove the OSLC-Core-Version and Configuration-Context headers, and provide vvc.configuration header
397
+
print( "Structure updated - finishing now" )
397
398
sys.exit(0)
398
399
# scan all the entries into a dictionary keyed by the URL
parser=argparse.ArgumentParser(description="Perform OSLC query on a Jazz application, with results output to CSV (and other) formats - use -h to get some basic help")
72
72
73
-
parser.add_argument('-f', '--searchterms', action='append', default=[], help='**APPS MAY NOT FULLY SUPPORT THIS** A word or phrase to search, returning ranked results"')
73
+
parser.add_argument('-f', '--searchterms', action='append', default=[], help='**APPS MAY NOT FULLY SUPPORT THIS** A word or phrase to search, returning ranked results - use once for each term and oslcquery will insert the quotes and commas"')
74
74
parser.add_argument('-n', '--null', action='append', default=[], help='Post-filter: A property that must be null (empty) for the resource to be included in the results - you can specify this option more than once')
75
75
parser.add_argument('-o', '--orderby', default='', help='**APPS MAY NOT FULLY SUPPORT THIS** A comma-separated list of properties to sort by - prefix with "+" for ascending, "-" for descending- if -f/--searchterms is specified this orders items with the same oslc:score - to speciy a leading -, use = e.g. -o=-dcterms:title')
76
76
parser.add_argument('-p', '--projectname', default=None, help='Name of the project - omit to run a query on the application')
parser.add_argument('-u', '--unique', action="store_true", help="Post-filter: Remove results with an rm_nav:parent value which are not-unique in the results on dcterms:identifier - this keeps module artifacts (which don't have rm_nav:parent) and artifacts for modules (which don't have a module artifact)) - RELEVANT ONLY FOR DOORS Next!")
81
81
parser.add_argument('-v', '--value', action='append', default=[], help='Post-filter: A property name that must have a value for the resource to be included in the results - you can specify this option more than once')
82
82
parser.add_argument('-A', '--appstrings', default=None, help=f'A comma-seperated list of apps, the query goes to the first entry, default "{APPSTRINGS}". Each entry must be a domain or domain:contextroot e.g. rm or rm:rm1 - Default can be set using environemnt variable QUERY_APPSTRINGS')
83
+
parser.add_argument('-B', '--browser', default=None, help='Save results in HTML file and open in a browser')
83
84
parser.add_argument('-C', '--component', help='The local component (optional, you *have* to specify the local configuration using -F)')
84
85
parser.add_argument('-D', '--delaybetweenpages', type=float,default=0.0, help="Delay in seconds between each page of results - use this to reduce overall server load particularly for large result sets or when retrieving many properties")
85
86
parser.add_argument('-E', '--globalproject', default=None, help="The global configuration project - optional if the globalconfiguration is unique in the gcm app")
0 commit comments