Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.

In OSLC, each artifact in the lifecycle (for example, requirements, change requests, test cases) is identified by a URI. Each artifact in the lifecycle is an HTTP resource. Standard HTTP methods (GET, PUT, POST, DELETE) are used to interact with them. When someone looks up a URI, OSLC queries provide useful information using the standards (RDF*, SPARQL). Each OSLC resource has an RDF representation. RDF/XML is mandatory and other representations such as JSON or HTML are common. OSLC lifecycle artifacts are linked by relationships (for example, elaborates or elaboratedBy) which are defined by URIs.

There are two types of OSLC queries you can construct to query an artifacts repository - simple or basic query and a more advanced query based on SQL or SPARQL, details of which can be found on the OSLC Specification website - {+}

To create and run a basic OSLC query, do the following

  1. Click Tools > DataHub > Create OSLC Query from MagicDraw® or click the Create OSLC Query  icon in DataHub explorer. The OSLC Query Editor window should appear, see figure below.
  2. The OSLC query editor has two tabs -  and .
  3. Basic queries are simple text search queries. You can search from the TitleDescriptionCreatorCreatedDate and Last Modified Date fields. Type your search term into the appropriate check box and click the button.
  4. The results will appear, see figure below.

OSLC Query editor window

      5.   After the query results appear you can click the  button to save the results as the alias.

To create and run an advanced query

  1. Click the Create OSLC Query  button on the DataHub explorer toolbar.
  2. Click the Query Editor tab, see Figure below. In the Query String text box, type your query which might look like{+}https://host:port/rm/views?oslc.query=true+ or  or https://host:port/bugs?,dcterms:creator\{foaf:familyName}&oslc.where=cm:severity="high" 
  3. If the query returns any results, they will be displayed on the lower half of the OSLC Query Editor, see figure below.
  4. You can click the  button to save the results as an alias.
  5. More examples of queries and their syntax can be found on the OSLC Specification website.

The OSLC advanced Query Editor tab