Hi, everyone! I have a question about setting-up semantic properties from code. Is it right way to do like that? For example, lets set property "NewProp" with value 31337 on page "Bridge":
$propertyDv = SMWPropertyValue::makeUserProperty( 'NewProp' ); $propertyDi = $propertyDv->getDataItem(); $semandticData = smwfGetStore()->getSemanticData( new SMWDIWikiPage( 'Bridge', NS_MAIN, '' ) ); $result = SMWDataValueFactory::newPropertyObjectValue( $propertyDi, 31337, 'NewProp', $semandticData->getSubject() ); $semandticData->addPropertyObjectValue( $propertyDi, $result->getDataItem() ); smwfGetStore()->updateData( $semandticData ); smwfGetStore()->doDataUpdate( $semandticData ); With this code i got "NewProp" property visible by {{#ask:}} queries, visible in Special:Browse, but not visible in FACTBOX (maybe its cache). ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Semediawiki-devel mailing list Semediawiki-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/semediawiki-devel