[ https://issues.apache.org/jira/browse/JENA-306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16741516#comment-16741516 ]
Bruno P. Kinoshita commented on JENA-306: ----------------------------------------- [~andy.seaborne] I think this one has been fixed somewhere? {noformat} curl -XPOST 'http://localhost:13030/ds/sparql' -H 'Accept: text/turtle,*/*;q=0.9' -H 'Referer: http://localhost:13030/dataset.html?tab=query&ds=/ds' -H 'Content-Type: application/sparql-query; charset=UTF-8' --data @- << EOF > PREFIX skos: <http://www.w3.org/2004/02/skos/core#> > PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> > PREFIX xl: <http://www.skosmos.skos/xl/> > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX skosxl: <http://www.w3.org/2008/05/skos-xl#> > > CONSTRUCT > { > ?s ?p ?uri . > ?sp ?uri ?op . > ?uri ?p ?o . > ?p rdfs:label ?proplabel . > ?p rdfs:subPropertyOf ?pp . > ?pp rdfs:label ?plabel . > ?o rdf:type ?ot . > ?o skos:prefLabel ?opl . > ?o rdfs:label ?ol . > ?o rdf:value ?ov . > ?o skos:notation ?on . > ?o ?oprop ?oval . > ?o ?xlprop ?xlval . > ?directgroup skos:member ?uri . > ?parent skos:member ?group . > ?group skos:prefLabel ?grouplabel . > ?b1 rdf:first ?item . > ?b1 rdf:rest ?b2 . > ?item rdf:type ?it . > ?item skos:prefLabel ?il . > ?group rdf:type ?grouptype . > } > FROM NAMED <http://www.skosmos.skos/http304/> > WHERE > { > GRAPH <http://www.skosmos.skos/http304/> > { { ?s ?p ?uri > FILTER ( ! isBlank(?s) ) > FILTER ( ?p != skos:inScheme ) > } > UNION > { ?sp ?uri ?op } > UNION > { ?directgroup skos:member ?uri . > ?group (skos:member)+ ?uri . > ?group skos:prefLabel ?grouplabel ; > rdf:type ?grouptype > OPTIONAL > { ?parent skos:member ?group } > } > UNION > { ?uri ?p ?o > OPTIONAL > { ?o (rdf:rest)* ?b1 . > ?b1 rdf:first ?item ; > rdf:rest ?b2 > OPTIONAL > { ?item rdf:type ?it } > OPTIONAL > { ?item skos:prefLabel ?il } > } > OPTIONAL > { { ?p rdfs:label ?proplabel } > UNION > { ?p rdfs:subPropertyOf ?pp } > } > OPTIONAL > { { ?o rdf:type ?ot } > UNION > { ?o skos:prefLabel ?opl } > UNION > { ?o rdfs:label ?ol } > UNION > { ?o rdf:value ?ov > OPTIONAL > { ?o ?oprop ?oval } > } > UNION > { ?o skos:notation ?on } > UNION > { ?o rdf:type skosxl:Label ; > ?xlprop ?xlval > } > } > } > } > } > EOF {noformat} Is working fine for me (noticed this one while looking at queries sent from Skosmos to Jena in Firefox browser network tab). {noformat} @prefix xl: <http://www.skosmos.skos/xl/> . @prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . <http://www.skosmos.skos/test/cat> a skos:Concept ; <http://purl.org/dc/terms/modified> "2018-12-13T06:28:14+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Cat"@en . <http://www.skosmos.skos/test/http304mainconceptscheme> a skos:ConceptScheme ; <http://purl.org/dc/terms/modified> "2018-12-13T06:28:14+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Test Main Concept Scheme"@en . <http://www.skosmos.skos/test/macaw> a skos:Concept ; <http://purl.org/dc/terms/modified> "2018-10-22T12:34:45"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Macaw"@en . <http://www.skosmos.skos/test/parrot> a skos:Concept ; <http://purl.org/dc/terms/modified> "2018-10-22"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Parrot"@en . <http://www.skosmos.skos/test/sloth> a skos:Concept ; <http://purl.org/dc/terms/modified> "2018-10-22T12:34:45+05:30"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Sloth"@en . <http://www.skosmos.skos/test/dog> a skos:Concept ; skos:prefLabel "Dog"@en . <http://www.skosmos.skos/test/lizard> a skos:Concept ; <http://purl.org/dc/terms/modified> "2018-00-00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Lizard"@en . <http://www.skosmos.skos/test/mink> a skos:Concept ; <http://purl.org/dc/terms/modified> "20184545"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Mink"@en . <http://www.skosmos.skos/test/owl> a skos:Concept ; <http://purl.org/dc/terms/modified> "20181022"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Owl"@en . <http://www.skosmos.skos/test/anotherConceptScheme> a skos:ConceptScheme ; <http://purl.org/dc/terms/modified> "2013-11-01T02:28:14+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ; skos:prefLabel "Another Test Concept Scheme"@en . {noformat} > API access to application/sparql-query, not an HTML form. > --------------------------------------------------------- > > Key: JENA-306 > URL: https://issues.apache.org/jira/browse/JENA-306 > Project: Apache Jena > Issue Type: Improvement > Components: ARQ > Environment: The client code for remote SPARQL queries provides GET > and POST/HTML form options. > This improvement would let the client choose to use POST with content > application/sparql-query. > Reporter: Andy Seaborne > Priority: Minor > -- This message was sent by Atlassian JIRA (v7.6.3#76005)