# Error from Service?

**URL:** <https://community.stardog.com/t/error-from-service/5596>\
**Category:** Stardog Studio\
**Created:** [September 23, 2026, 11:15pm UTC](https://community.stardog.com/t/error-from-service/5596 "2026-09-23T23:15:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WWilson](https://avatars.discourse-cdn.com/v4/letter/w/e19adc/32.png) [@WWilson](https://community.stardog.com/u/WWilson)\
**Post date:** [September 23, 2026, 11:15pm UTC](https://community.stardog.com/t/error-from-service/5596/1 "2026-09-23T23:15:47Z")

</div>

Why does this error result-

Error-  
Failed to run query: com.complexible.stardog.plan.eval.operator.OperatorException: com.stardog.stark.query.io.InvalidQueryResults: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 443; The element type "link" must be terminated by the matching end-tag "". [L1:443]

for this query-

```auto
PREFIX wd: <http://www.wikidata.org/entity/> .
PREFIX wdt: <http://www.wikidata.org/prop/direct/> .

```

select \*  
WHERE  
{  
?agt a foaf:Person ;  
schema:sameAs ?sa .  
filter regex(str(?sa),'wiki','i')

SERVICE [https://query.wikidata.org/](https://query.wikidata.org/)  
{  
select \*  
WHERE  
{  
wd:Q51120429 ?p ?o  
}  
}

}

The query works when used in Wikidata sparql endpoint.
