static ItemIdValueImpl fromIri ( String iri ) { int separator = iri . lastIndexOf ( ' ' ) + 1 ; try { return new ItemIdValueImpl ( iri . substring ( separator ) , iri . substring ( 0 , separator ) ) ; } catch ( IllegalArgumentException e ) { throw new IllegalArgumentException ( "Invalid Wikibase entity IRI: " + iri , e ) ; } }
Parses an item IRI