Hi Rob, > On 8 Oct 2018, at 07:57, Rob Atkinson <[email protected]> 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.
