@Test public void testOrderProperties() { Resource subj = m.getResource( "http: ModelWrapper mw = new ModelWrapper( m ); RDFNodeWrapper subjw = new RDFNodeWrapper( mw, subj ); List<PropertyValue> triples = new DefaultPropertyOrderingStrategy().orderProperties( subjw ); assertEquals( "http: assertEquals( "http: assertEquals( "http: }
@Override public List<PropertyValue> orderProperties( RDFNodeWrapper subject ) { List<PropertyValue> apvs = collectValues( subject ); final Map<RDFNodeWrapper, String> propertyNames = propertyNames( apvs, subject.getModelW() ); orderSelectedProperties( apvs, propertyNames ); orderPropertyMultiValues( apvs ); return apvs; }
DefaultPropertyOrderingStrategy implements PropertyOrderingStrategy { @Override public List<PropertyValue> orderProperties( RDFNodeWrapper subject ) { List<PropertyValue> apvs = collectValues( subject ); final Map<RDFNodeWrapper, String> propertyNames = propertyNames( apvs, subject.getModelW() ); orderSelectedProperties( apvs, propertyNames ); orderPropertyMultiValues( apvs ); return apvs; } }
DefaultPropertyOrderingStrategy implements PropertyOrderingStrategy { @Override public List<PropertyValue> orderProperties( RDFNodeWrapper subject ) { List<PropertyValue> apvs = collectValues( subject ); final Map<RDFNodeWrapper, String> propertyNames = propertyNames( apvs, subject.getModelW() ); orderSelectedProperties( apvs, propertyNames ); orderPropertyMultiValues( apvs ); return apvs; }  }
DefaultPropertyOrderingStrategy implements PropertyOrderingStrategy { @Override public List<PropertyValue> orderProperties( RDFNodeWrapper subject ) { List<PropertyValue> apvs = collectValues( subject ); final Map<RDFNodeWrapper, String> propertyNames = propertyNames( apvs, subject.getModelW() ); orderSelectedProperties( apvs, propertyNames ); orderPropertyMultiValues( apvs ); return apvs; }  @Override List<PropertyValue> orderProperties( RDFNodeWrapper subject ); }
DefaultPropertyOrderingStrategy implements PropertyOrderingStrategy { @Override public List<PropertyValue> orderProperties( RDFNodeWrapper subject ) { List<PropertyValue> apvs = collectValues( subject ); final Map<RDFNodeWrapper, String> propertyNames = propertyNames( apvs, subject.getModelW() ); orderSelectedProperties( apvs, propertyNames ); orderPropertyMultiValues( apvs ); return apvs; }  @Override List<PropertyValue> orderProperties( RDFNodeWrapper subject );  }