@@ -8,7 +8,7 @@ import RDFParser from './rdfxmlparser'
88import sparqlUpdateParser from './patch-parser'
99import * as Util from './utils-js'
1010import Formula from './formula'
11- import { ContentType , TurtleContentType , N3ContentType , RDFXMLContentType , XHTMLContentType , HTMLContentType , SPARQLUpdateContentType , JSONLDContentType , NQuadsContentType , NQuadsAltContentType } from './types'
11+ import { ContentType , TurtleContentType , N3ContentType , RDFXMLContentType , XHTMLContentType , HTMLContentType , SPARQLUpdateContentType , SPARQLUpdateSingleMatchContentType , JSONLDContentType , NQuadsContentType , NQuadsAltContentType } from './types'
1212import { Quad } from './tf-types'
1313
1414type CallbackFunc = ( error : any , kb : Formula | null ) => void
@@ -48,7 +48,7 @@ export default function parse (
4848 } else if ( contentType === HTMLContentType ) {
4949 parseRDFaDOM ( Util . parseXML ( str , { contentType : HTMLContentType } ) , kb , base )
5050 executeCallback ( )
51- } else if ( contentType === SPARQLUpdateContentType ) { // @@ we handle a subset
51+ } else if ( ( contentType === SPARQLUpdateContentType ) || ( contentType === SPARQLUpdateSingleMatchContentType ) ) { // @@ we handle a subset
5252 sparqlUpdateParser ( str , kb , base )
5353 executeCallback ( )
5454 } else if ( contentType === JSONLDContentType ) {
@@ -73,6 +73,7 @@ export default function parse (
7373 'application/xhtml+xml' : true ,
7474 'text/html' : true ,
7575 'application/sparql-update' : true ,
76+ 'application/sparql-update-single-match' : true ,
7677 'application/ld+json' : true ,
7778 'application/nquads' : true ,
7879 'application/n-quads' : true
0 commit comments