{ "items" : [
    { "id" : "http://webisa.webdatacommons.org/197809381"
      "properties" : {
        "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" : [ "http://www.w3.org/ns/prov#Entity" ] ,
        "http://www.w3.org/ns/prov#value" : [ "Since you are iterating through all items and checking whether they are selected or not all you need to do is set a flag that will become true the moment one of the items is not selected (meaning, there will be at least one item left to be added)." ] ,
        "http://www.w3.org/ns/prov#wasQuotedFrom" : [ "stackoverflow.com" ] } },

    { "id" : "http://webisa.webdatacommons.org/prov/173461932"
      "properties" : {
        "http://www.w3.org/ns/prov#wasDerivedFrom" : [ "http://webisa.webdatacommons.org/197809381"] } } }
