Thanks Richard. yep - i did manage to lose the name - not sure when that happened as i was getting nulls with a name and other parameters not well formed I think before. Anyway - thats enough to fix this.
The documentation really ought to be linked from the discoverable guide documentation - better to excise the partial treatment from there and point to the useful version - and better still to make sure all these hidden online documents get automatically dumped to a web searchable location and linked wherever relevant. (Sometimes very good documentation but perhaps 8 or 10 different unlinked locations and access methods seems rather sub-optimal :-( ) On Monday, 8 October 2018 21:25:00 UTC+11, Richard Cyganiak wrote: > > Hi Rob, > > > On 8 Oct 2018, at 07:57, Rob Atkinson <[email protected] > <javascript:>> wrote: > > > > Problem accessing /edg/tbl/swp. Reason: > > HTTP method GET is not supported by this URL > > /edg/tbl/swp is the path when EDG is running deployed on Tomcat. The EDG > documentation is written assuming this. > > /tbl/swp is the path when EDG is running from TBCME. > > > 2) If i use the normal path that EDG seems to want to use and fill in > _all_ the paremeters > > > > > http://localhost:8083/tbl/swp?_viewClass=http%3A%2F%2Ftopbraid.org%2Fteamwork%23CreateProjectService&projectType=http%3A%2F%2Fedg.topbraidlive.org%2Fedgprojects%23ProjectType&_snippet=true&name=&owlImports=http%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore&defaultNamespace=http://example.org/frog/&spinImports=http://topbraid.org/spin/edgconstraints > > > The required &name= parameter is empty in this URL. I suspect that’s what > causes the NullPointerException. > > > IMHO nothing should ever return a NullPointer without telling you what > thing is null > > You’re not wrong. > > > 3) there is no information on cardinality of the arguments - are they > all mandatory? how, for example, do you specify multiple owlImports - a > list or multiple parameters? > > Documentation for this service is in EDG under Server Administration > > Available Web Services > Teamwork UI Elements and Modules. It says which > arguments are optional. The comment on owlImports says “A space-separated > list of URIs”. > > This documentation is generated automatically from the SWP source code by > the way, so you could also open teamwork:CreateProjectService in TBCME and > look at the defined arguments. > > > 4) what are the allowable values of project type and how do they relate > to EDG Asset Collection types - the example importing SKOS seems to relate > to a Taxonomy? > > The example in the documentation seems to assume we’re creating a > taxonomy. The value for owlImports should be different for other project > types. > > The documentation says it must be an instance of teamwork:ProjectType (or > its subclasses). > > Go to http://localhost:8083/tbl/sparql and run this query to get a list: > > SELECT ?projectType > WHERE { > GRAPH ui:graph { > ?class rdfs:subClassOf* teamwork:ProjectType . > ?projectType a ?class . > } > } > > Richard -- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
