Author Topic: OSLC where and wildcard  (Read 5663 times)

philchudley

  • EA User
  • **
  • Posts: 743
  • Karma: +21/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
OSLC where and wildcard
« on: May 22, 2014, 11:36:24 pm »
Hi All

I have been playing around with Version 11 and OSLC

It appears that wildcard query is not supported, for example the following works just fine

http://localhost:804/ea_demo/oslc/qc/?oslc.where=ss:type="Functional"

but the following returns an HTTP 400 Bad Request error

http://localhost:804/ea_demo/oslc/qc/?oslc.where=ss:type="%Funct%"

Does Version 11 support OSCL wildcard queries?  If not is support for wildcards planned?

Cheers
Models are great!
Correct models are even greater!

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: OSLC where and wildcard
« Reply #1 on: May 23, 2014, 12:37:33 am »
No idea what you are talking about :D but have you tried "*" instead of "%"?

q.

philchudley

  • EA User
  • **
  • Posts: 743
  • Karma: +21/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
Re: OSLC where and wildcard
« Reply #2 on: May 23, 2014, 01:09:05 am »
Thanks for the suggestion I have tried * and % but both have same effect
Models are great!
Correct models are even greater!

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: OSLC where and wildcard
« Reply #3 on: July 05, 2024, 09:14:38 pm »
Hi Phil,

Ten years later, I stumbled upon this post trying to find a solution for the same problem.

Do you know if they have somehow resolved this problem?
Or if there is another way to get a list of all elements that have a certain term in their name or description?

WebEA seems to be able to do it, so there must be a way.

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: OSLC where and wildcard
« Reply #4 on: July 08, 2024, 08:26:49 am »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: OSLC where and wildcard
« Reply #5 on: July 08, 2024, 06:32:24 pm »
https://sparxsystems.com/enterprise_architect_user_guide/16.1/the_model_repository/oslc_where.html

The wildcard (defined by the standard) appears to be '*'.
We found that, but it appears that you can only use the wildcard to specify the properties to look into.
Not to find say all elements that have "searchTerm" somewhere in their comments.

I was hoping we could use
Code: [Select]
...where=dcterms:description="*searchTerm*"But that doesn't work.

I did some googling, and it appears we would need to use oslc.searchTerms="searchTerm" but that doesn't seem to be implemented by PCS.

Is there an alternative for this?

I really feel like I'm missing something. I know WebEA has a search function, and Prolaborate has even much more advanced query possibilities; but I don't see anything in the OSCL interface that I could use to implement such a search function myself.

It feels like there should be some kind of equivalent for Repository.SQLQuery in the PCS interface, but I can't seem to find it.

Geert