{"action":"created","issue":{"url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/14","repository_url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor","labels_url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/14/comments","events_url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/14/events","html_url":"https://github.com/kbss-cvut/s-pipes-editor/issues/14","id":335269113,"node_id":"MDU6SXNzdWUzMzUyNjkxMTM=","number":14,"title":"script shows strange ask expression","user":{"login":"blcham","id":3962237,"node_id":"MDQ6VXNlcjM5NjIyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3962237?v=4","gravatar_id":"","url":"https://api.github.com/users/blcham","html_url":"https://github.com/blcham","followers_url":"https://api.github.com/users/blcham/followers","following_url":"https://api.github.com/users/blcham/following{/other_user}","gists_url":"https://api.github.com/users/blcham/gists{/gist_id}","starred_url":"https://api.github.com/users/blcham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blcham/subscriptions","organizations_url":"https://api.github.com/users/blcham/orgs","repos_url":"https://api.github.com/users/blcham/repos","events_url":"https://api.github.com/users/blcham/events{/privacy}","received_events_url":"https://api.github.com/users/blcham/received_events","type":"User","site_admin":false},"labels":[{"id":875224579,"node_id":"MDU6TGFiZWw4NzUyMjQ1Nzk=","url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/labels/bug","name":"bug","color":"d73a4a","default":true},{"id":875224582,"node_id":"MDU6TGFiZWw4NzUyMjQ1ODI=","url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/labels/help%20wanted","name":"help wanted","color":"008672","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-25T05:58:35Z","updated_at":"2018-07-01T12:44:13Z","closed_at":null,"author_association":"COLLABORATOR","body":"Within gacr-model, the  generated configuration form of module bind-descriptor-type-id for script ..../descriptor/spo-summary/transformation.ttl shows strange value for property \"http://onto.fel.cvut.cz/ontologies/lib/module/has-input-graph-constraint\" i.e.:\r\n`<http://spinrdf.org/sp#Ask>([])`\r\n\r\nThis value is inherited from definition in .../descriptor/transformation-core.ttl where there are following triples:\r\n```\r\ndescriptor-script:bind-descriptor-type-id\r\n  rdf:type sml:BindWithConstant ;\r\n  **kbss-module:has-input-graph-constraint [\r\n      rdf:type sp:Ask ;\r\n      sp:where (\r\n          [\r\n            rdf:type sp:Filter ;\r\n            sp:expression [\r\n                rdf:type sp:not ;\r\n                sp:arg1 [\r\n                    rdf:type sp:bound ;\r\n                    sp:arg1 [\r\n                        sp:varName \"descriptorType\" ;\r\n                      ] ;\r\n                  ] ;\r\n              ] ;\r\n          ]\r\n        ) ;**\r\n    ] ;\r\n```\r\nThus correct value of property \"http://onto.fel.cvut.cz/ontologies/lib/module/has-input-graph-constraint\" should be :\r\n```\r\nASK WHERE {\r\n    FILTER (!bound(?descriptorType)) .\r\n}\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/comments/401604414","html_url":"https://github.com/kbss-cvut/s-pipes-editor/issues/14#issuecomment-401604414","issue_url":"https://api.github.com/repos/kbss-cvut/s-pipes-editor/issues/14","id":401604414,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTYwNDQxNA==","user":{"login":"blcham","id":3962237,"node_id":"MDQ6VXNlcjM5NjIyMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/3962237?v=4","gravatar_id":"","url":"https://api.github.com/users/blcham","html_url":"https://github.com/blcham","followers_url":"https://api.github.com/users/blcham/followers","following_url":"https://api.github.com/users/blcham/following{/other_user}","gists_url":"https://api.github.com/users/blcham/gists{/gist_id}","starred_url":"https://api.github.com/users/blcham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blcham/subscriptions","organizations_url":"https://api.github.com/users/blcham/orgs","repos_url":"https://api.github.com/users/blcham/repos","events_url":"https://api.github.com/users/blcham/events{/privacy}","received_events_url":"https://api.github.com/users/blcham/received_events","type":"User","site_admin":false},"created_at":"2018-07-01T12:44:13Z","updated_at":"2018-07-01T12:44:13Z","author_association":"COLLABORATOR","body":"It seems like you are using wrong API to parse the query. ASK expression is not SPIN expression but SPIN query in a same way CONSTRUCT expression or SELECT expression is SPIN query. Thus, I think  `SPINExpressions.isExpression(st.getObject())` would return `false`. \r\n\r\nYou need to parse it in a same way as it is parsed in s-pipes-forms -- I have created test for it in `AnonNodeTransformerTest.serializeForAskWithoutTextReturnsTextRepresentation()`."}}
{"actor":{"display_login":"blcham"}}