I have a number of integer values in the object part of the RDF triples like following:
subject predicate object
:a1 :d1 2017
:a2 :d1 201601
:a3 :d1 20170510
I need to find whether subject :a1
's object value is greater than :a2
's object value and :a2
's object value is greater than :a3
's object value or not through SPARQL. However, before writing that query, I need to make all the object values eight digits by adding extra zeros to the right side of the value like following:
subject predicate object
:a1 :d1 20170000
:a2 :d1 20160100
:a3 :d1 20170510
Could please let me know how to format object values to eight digits integer in SPARQL? Thank you.