Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LyoD ignores model structure for 2 services with the same domain in the SP response #123

Open
berezovskyi opened this issue Aug 9, 2019 · 2 comments
Assignees

Comments

@berezovskyi
Copy link
Contributor

If I model two Services with the same domain, Lyo produces RDF reponse with a single service response even though URIs will point to two different services:

        oslc:service           [ a                     oslc:Service ;
                                 oslc:creationDialog   [ a                  oslc:Dialog ;
                                                         oslc:dialog        <http://localhost:8800/services/serviceProviders/default_sp/service1/requirements/creator> ;
                                                         oslc:hintHeight    "0px" ;
                                                         oslc:hintWidth     "0px" ;
                                                         oslc:label         "Requirements Creation Dialog" ;
                                                         oslc:resourceType  <http://open-services.net/ns/rm#Requirement> ;
                                                         dcterms:title      "RequirementCD"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:creationFactory  [ a                   oslc:CreationFactory ;
                                                         oslc:creation       <http://localhost:8800/services/serviceProviders/default_sp/service2/requirementCollections/create> ;
                                                         oslc:label          "Requirement Collections Creation Factory" ;
                                                         oslc:resourceShape  <http://localhost:8800/services/resourceShapes/requirementCollection> ;
                                                         oslc:resourceType   <http://open-services.net/ns/rm#RequirementCollection> ;
                                                         dcterms:title       "RequirementCollectionCF"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:creationFactory  [ a                   oslc:CreationFactory ;
                                                         oslc:creation       <http://localhost:8800/services/serviceProviders/default_sp/service1/requirements/create> ;
                                                         oslc:label          "Requirements Creation Factory" ;
                                                         oslc:resourceShape  <http://localhost:8800/services/resourceShapes/requirement> ;
                                                         oslc:resourceType   <http://open-services.net/ns/rm#Requirement> ;
                                                         dcterms:title       "RequirementCF"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:domain           <http://open-services.net/ns/rm#> ;
                                 oslc:queryCapability  [ a                   oslc:QueryCapability ;
                                                         oslc:label          "Requirement Collections Query Capability" ;
                                                         oslc:queryBase      <http://localhost:8800/services/serviceProviders/default_sp/service2/requirementCollections/query> ;
                                                         oslc:resourceShape  <http://localhost:8800/services/resourceShapes/requirementCollection> ;
                                                         oslc:resourceType   <http://open-services.net/ns/rm#RequirementCollection> ;
                                                         dcterms:title       "RequirementCollectionQC"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:queryCapability  [ a                   oslc:QueryCapability ;
                                                         oslc:label          "Requirements Query Capability" ;
                                                         oslc:queryBase      <http://localhost:8800/services/serviceProviders/default_sp/service1/requirements/query> ;
                                                         oslc:resourceShape  <http://localhost:8800/services/resourceShapes/requirement> ;
                                                         oslc:resourceType   <http://open-services.net/ns/rm#Requirement> ;
                                                         dcterms:title       "RequirementQC"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:selectionDialog  [ a                  oslc:Dialog ;
                                                         oslc:dialog        <http://localhost:8800/services/serviceProviders/default_sp/service2/requirementCollections/selector> ;
                                                         oslc:hintHeight    "0px" ;
                                                         oslc:hintWidth     "0px" ;
                                                         oslc:label         "Requirement Collections Selection Dialog" ;
                                                         oslc:resourceType  <http://open-services.net/ns/rm#RequirementCollection> ;
                                                         dcterms:title      "RequirementCollectionSD"^^rdf:XMLLiteral
                                                       ] ;
                                 oslc:selectionDialog  [ a                  oslc:Dialog ;
                                                         oslc:dialog        <http://localhost:8800/services/serviceProviders/default_sp/service1/requirements/selector> ;
                                                         oslc:hintHeight    "0px" ;
                                                         oslc:hintWidth     "0px" ;
                                                         oslc:label         "Requirements Selection Dialog" ;
                                                         oslc:resourceType  <http://open-services.net/ns/rm#Requirement> ;
                                                         dcterms:title      "RequirementSD"^^rdf:XMLLiteral
                                                       ]
                               ] ;
@berezovskyi
Copy link
Contributor Author

With my new script, I get the following hierarchy enumeration:

Populating OSLC RefImpl servers with sample data.

Fetched the RM Service Provider Catalog
-> contains Default ServiceProvider
   -> contains a Service with:
      -> Requirements Query Capability
      -> Requirement Collections Query Capability
      -> Requirements Creation Factory
      -> Requirement Collections Creation Factory
      -> Requirements Selection Dialog
      -> Requirement Collections Selection Dialog
      -> Requirements Creation Dialog

while I expect

Populating OSLC RefImpl servers with sample data.

Fetched the RM Service Provider Catalog
-> contains Default ServiceProvider
   -> contains a Service with:
      -> Requirements Query Capability
      -> Requirements Creation Factory
      -> Requirements Selection Dialog
      -> Requirements Creation Dialog
   -> contains a Service with:
      -> Requirement Collections Query Capability
      -> Requirement Collections Creation Factory
      -> Requirement Collections Selection Dialog

@berezovskyi
Copy link
Contributor Author

@jamsden is there anything in the spec that invalidates my expectations of LyoD generating the reponse that corresponds to my model exactly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants