Sparql select to return rdfs type name without prefix

My challenge is (partially) stated in rdf - SPARQL query that returns prefixed names instead of IRIs - Stack Overflow

  • Is there a Stardog helper function that could return the rdfs type name without a prefix?

P.S. I don't want semi columns to be returned either - in case of default prefix.

Thanks,
Radu

Got it from previous answered topic Need to format sqarql select results for tableau Thanks to @pavel

So it is:
prefix sdf: tag:stardog:api:functions:
select (sdf:localname(?s) as ?subject) (if(isIRI(?o), sdf:localname(?o), ?o) as ?object) { ?s ?p ?o }

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.