Date: Thu, 28 Mar 2024 22:25:02 -0400 (EDT) Message-ID: <1958339297.821.1711679102185@ip-10-208-26-37.ec2.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_820_1991155200.1711679102173" ------=_Part_820_1991155200.1711679102173 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
LexEVS provides a number of services which are retrievable through the L= exBIGService interface and the LexEvsServiceLocator interface. We list here= a small sample including the more commonly used interfaces.
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance();=09 =09=09try { =09=09=09HistoryService historSvc =3D lbsv.getHistoryService(codingScheme);= < =09=09} catch (LBException e) {=09 =09=09=09e.printStackTrace();=09 =09=09}
= //LexBIG Service Manager can accept credentials validation to //preserve service security. =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09 =09=09try { =09=09=09 =09=09=09LexBIGServiceManager svcManager =3D lbsv.getServiceManager(credent= ials); =09=09=09 =09=09} catch (LBException e) { =09=09=09e.printStackTrace(); =09=09}
= // User safe service meta data query interface. =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09 =09=09try { =09=09=09 =09=09=09LexBIGServiceMetadata svcMetaData =3D lbsv.getServiceMetadata(); =09=09=09 =09=09} catch (LBException e) { =09=09=09e.printStackTrace(); =09=09}
// The= system resource service is commonly wrapped in LexBIGServiceManager calls // and as such it prevents unauthorized users from removing coding schemes= from the service. SystemResourceService systemResourceService =3D LexEvsServiceLocator.getIn= stance().getSystemResourceService(); // must be marked as inactive or pending before delete. systemResourceService.removeCodingSchemeResourceFromSystem( codingSchemeVersionReference.getCodingSchemeURN(), codingSchemeVersionReference.getCodingSchemeVersion());
Some index operations can be accomplished using the interface returned f= rom the LexEvsServiceLocator.
=09=09b= oolean isSingleIndex =3D=20 =09=09=09LexEvsServiceLocator.getInstance().getSystemResourceService().getS= ystemVariables().getIsSingleIndex(); =09=09 =09=09if(! isSingleIndex) { =09=09=09throw new RuntimeException("Lucene Clean Up can only be executed i= n Single Index Mode."); =09=09} =09=09try { =09=09=09List<AbsoluteCodingSchemeVersionReference> expectedList =3D= =20 =09=09=09=09new ArrayList<AbsoluteCodingSchemeVersionReference>(); =09=09=09 =09=09=09for(RegistryEntry entry : =09=09=09=09LexEvsServiceLocator.getInstance().getRegistry().getAllRegistry= EntriesOfType(ResourceType.CODING_SCHEME)) { =09=09=09=09 =09=09=09=09AbsoluteCodingSchemeVersionReference ref =3D new AbsoluteCoding= SchemeVersionReference(); =09=09=09=09ref.setCodingSchemeURN(entry.getResourceUri()); =09=09=09=09ref.setCodingSchemeVersion(entry.getResourceVersion()); =09=09=09=09 =09=09=09=09expectedList.add(ref); =09=09=09} =09=09=09 =09=09=09LexEvsServiceLocator.getInstance().getLexEvsIndexOperations().clea= nUp(expectedList, reindexMissing); =09=09} catch (Exception e) { =09=09=09throw new RuntimeException(e); =09=09}
Others operations require using the IndexServiceManager to retrieve a mo= re specific index service
= AbsoluteCodingSchemeVersionReference acsvr =3D new AbsoluteCodingSche= meVersionReference(); =20 acsvr.setCodingSchemeURN(css.getCodingSchemeURI()); acsvr.setCodingSchemeVersion(css.getRepresentsVersion()); =20 LexEvsServiceLocator.getInstance(). getIndexServiceManager(). getEntityIndexService().dropIndex(acsvr);
We've shown how the LexBIGService interface can retrieve other services,= but it also provides some user safe administrative functions. These functi= ons provide users with information about the service and overlap general us= er API functions, since they give users information about how to use the se= rvice.
= // LexEVS has no built-in filter extensions. This method call // will only return filters users have created themselves. =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09Enumeration<? extends ExtensionDescription> extDesc =3D lbsv.ge= tFilterExtensions().enumerateExtensionDescription(); =09=09while(extDesc.hasMoreElements()){ =09=09=09System.out.println(extDesc.nextElement().getName()); =09=09}
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09Enumeration<? extends SortDescription> sortDesc =3D lbsv.getSor= tAlgorithms(null).enumerateSortDescription(); =09=09while(sortDesc.hasMoreElements()){ =09=09=09System.out.println(sortDesc.nextElement().getName()); =09=09}
=09LexB= IGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09Enumeration<? extends ModuleDescription> modDesc =3D lbsv.getMa= tchAlgorithms().enumerateModuleDescription(); =09=09while(modDesc.hasMoreElements()){ =09=09=09System.out.println(modDesc.nextElement().getName()); =09=09}
Sample Output
Spelli= ngErrorTolerantSubStringSearch StemmedLuceneQuery literalContains startsWith nonLeadingWildcardLiteralSubString literal WeightedDoubleMetaphoneLuceneQuery literalSubString DoubleMetaphoneLuceneQuery RegExp
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09Enumeration<? extends ExtensionDescription> extDesc =3D lbsv.ge= tGenericExtensions().enumerateExtensionDescription(); =09=09while(extDesc.hasMoreElements()){ =09=09=09System.out.println(extDesc.nextElement().getName()); =09=09}
Sample Output
Supple= mentExtension LexBIGServiceConvenienceMethods ApproxNumOfConceptsPostProcessor MappingExtension SupportedAttributePostProcessor OntologyFormatAddingPostProcessor
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09CodingSchemeRenderingList schemes =3D lbsv.getSupportedCodingSchem= es(); for (CodingSchemeRendering csr : schemes.getCodingSchemeRenderi= ng()) { // Separator ... System.out.println("=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D"); CodingSchemeSummary css =3D csr.getCodingSchemeSummary(); CodingScheme cs =3D lbsv.resolveCodingScheme(css.getCodingS= chemeURI(), Constructors .createCodingSchemeVersionOrTagFromVersion(css.getR= epresentsVersion())); System.out.println(ObjectToString.toString(cs, "", 80));} =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Sample Output Excerpt
Coding= Scheme Name: MDR12_1_TO_CST95 Formal Name: MDR12_1_TO_CST95 URI: urn:oid:CL413321.MDR.CST Approximate Number of Concepts: 0 Default Language: null Represents Version: 200909 Local Names: Array of 1 items: MDR12_1_TO_CST95 Mappings: MappingsSupportedAssociations: Array of 1 items: SupportedAssociation Local ID: mapped_to Content: mapped_to AssociationEntity CodingScheme: null AssociationEntity EntityCodeNamespace: null AssociationEntity EntityCode: null SupportedCodingSchemes: .......................................= ............
=09publ= ic void run(){ =09=09String codingScheme =3D "amino-acid.owl";=09 =09=09CodingSchemeVersionOrTag versionOrTag =3D new CodingSchemeVersionOrTa= g(); =09=09versionOrTag.setVersion("1.2"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09CodingScheme cs =3D lbsv.resolveCodingScheme(codingScheme, version= OrTag ); System.out.println(ObjectToString.toString(cs, "", 80)); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Output same as preceding but for designated coding scheme only.
=09=09S= tring codingScheme =3D "amino-acid.owl";=09 =09=09CodingSchemeVersionOrTag versionOrTag =3D new CodingSchemeVersionOrTa= g(); =09=09versionOrTag.setVersion("1.2"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09String cpywrt =3D lbsv.resolveCodingSchemeCopyright(codingScheme, = versionOrTag); System.out.println(cpywrt); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Output is unformatted text
These methods are generally not end user safe or access information in t= he system that is administrator specific in context. In general it should n= ot be exposed to the end user.
Setting the Coding Scheme tag allows the system administrator to provide= status tags or designate a preferred version of a given coding scheme for = this terminology service.
Absolut= eCodingSchemeVersionReference codingSchemeVersion =3D=20 new AbsoluteCodingSchemeVersionReference(); codingSchemeVersion.setCodingSchemeURN("http://www.co-ode.org/ontologies/am= ino-acid/2005/10/11 /amino-acid.owl"); codingSchemeVersion.setCodingSchemeVersion("1.0"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); // PRODUCTION tagged vocabularies are interpreted = by LexEVS // to be the preferred version of the vocabulary. =09=09=09lbsvm.setVersionTag(codingSchemeVersion, "PRODUCTION"); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
The active designation for a coding scheme is required to enable query f= unctionality for the contained entities and their relationships and propert= ies.
Absolut= eCodingSchemeVersionReference codingSchemeVersion =3D=20 new AbsoluteCodingSchemeVersionReference(); codingSchemeVersion.setCodingSchemeURN("http://www.co-ode.org/ontologies/am= ino-acid/2005/10/1/amino-acid.owl"); codingSchemeVersion.setCodingSchemeVersion("1.0"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09lbsvm.activateCodingSchemeVersion(codingSchemeVersion); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09
Allows administrator to restrict access to coding scheme metadata only.<= /p>
Absolut= eCodingSchemeVersionReference codingSchemeVersion =3D=20 new AbsoluteCodingSchemeVersionReference(); codingSchemeVersion.setCodingSchemeURN("http://www.co-ode.org/ontologies/am= ino-acid/2005/10/1/amino-acid.owl"); codingSchemeVersion.setCodingSchemeVersion("1.0"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =20 =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09lbsvm.deactivateCodingSchemeVersion(codingSchemeVersion, null); =20 =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace();
Removes a coding scheme and its indexes from a terminology service.
Warning
This is a slow, resource consuming activity when the service is configur= ed for single table mode.
Absolut= eCodingSchemeVersionReference codingSchemeVersion =3D=20 new AbsoluteCodingSchemeVersionReference(); codingSchemeVersion.setCodingSchemeURN("http://www.co-ode.org/ontologies/am= ino-acid/2005/10/1 /amino-acid.owl"); codingSchemeVersion.setCodingSchemeVersion("1.0"); =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =20 =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09lbsvm.removeCodingSchemeVersion(codingSchemeVersion); =20 =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); {
Remove a history service from the terminology service.
=09=09S= tring codingScheme =3D "NCI Thesaurus"; =09=09LexBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09lbsvm.removeHistoryService(codingScheme); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Allows a determination of available loaders by an administrator.
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09 Enumeration<? extends ExtensionDescription> extDesc =3D lbsvm.getLoadExtensions().enumerateExtensionDescri= ption(); =09=09=09 while(extDesc.hasMoreElements()){ =09=09=09=09 System.out.println(extDesc.nextElement().getName()); =09=09=09 } =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Sample Output
NCIMet= aHistoryLoader OBOLoader HL7Loader ClaMLLoader SemNetLoader MrMap_Loader MetaDataLoader RadLexFramesLoader TextLoader NCIThesaurusHistoryLoader OWLLoader LexGrid_Loader
Returns a specific loader instance for use in loading the relevant sourc= e file.
= LexBIGService lbs =3D LexBIGServiceImpl.defaultInstance(); LexBIGServiceManager lbsm =3D lbs.getServiceManager(null); LexGrid_Loader loader =3D (LexGrid_Loader) lbsm .getLoader(org.LexGrid.LexBIG.Impl.loaders.LexGridMulti= LoaderImpl.name); loader.setCodingSchemeManifestURI(manifest); loader.load(source, false, true);
Returns an extension registry service for all externally registered plug= ins to LexEVS. This provides similar functionality to the other registry re= trieval, display and use and we won't repeat method examples here.
=09=09= =09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09 ExtensionRegistry registry =3D lbsvm.getExtensionRegistry();
Returns a list of Export extensions available as administrative function= s to allow administrators to export a terminology to a specifically formatt= ed output file.
=09=09L= exBIGService lbsv =3D LexBIGServiceImpl.defaultInstance(); =09=09try { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09Enumeration<? extends ExtensionDescription> extDesc =3D lbsvm.getExportExtensions().enumerateExtensionDescr= iption(); =09=09=09while(extDesc.hasMoreElements()){ =09=09=09=09System.out.println(extDesc.nextElement().getName()); =09=09=09} =09=09 =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Sample Output
LexGri= dExport OwlRdfExporter OBOExport
Returns an exporter for a specific output format.
= LexBIGService lbs =3D LexBIGServiceImpl.defaultInstance(); LexBIGServiceManager lbsm =3D lbs.getServiceManager(null); // Find the registered extension handling this type of export .= .. OwlRdfExporterImpl exporter =3D (OwlRdfExporterImpl) lbsm.getEx= porter(OwlRdfExporterImpl.name); // Perform the requested action ... CnsCngPair cngCngPair =3D FilterParser.parse(lbs, css.getCoding= SchemeURI(), css.getRepresentsVersion(), cl); exporter.setCng(cngCngPair.getCng()); exporter.setCns(cngCngPair.getCns()); exporter.export(Constructors.createAbsoluteCodingSchemeVersionR= eference(css), destination,overwrite,false, true);
Remove external coding scheme metadata.
= String urn =3D "urn:oid:11.00.11.1"; String ver =3D "1.1"; Enumeration<? extends CodingSchemeRendering> schemes = =3D lbs.getSupportedCodingSchemes() .enumerateCodingSchemeRendering(); while (schemes.hasMoreElements() && css =3D=3D null= ) { CodingSchemeSummary summary =3D schemes.nextElement().g= etCodingSchemeSummary(); if (urn.equalsIgnoreCase(summary.getCodingSchemeURI()) && ver.equalsIgnoreCase(summary.getRepr= esentsVersion())) css =3D summary; } } =20 lbs.getServiceManager(null).removeCodingSchemeVersionMetaDa= ta( Constructors.createAbsoluteCodingSchemeVersionRefer= ence(css));
Register a coding scheme as a supplement to another coding scheme.
=09=09t= ry { =09=09=09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09=09=09AbsoluteCodingSchemeVersionReference parentCodingScheme =3D new AbsoluteCodingSchemeVersionReference(); =09=09=09AbsoluteCodingSchemeVersionReference supplementCodingScheme =3D ne= w AbsoluteCodingSchemeVersionReference(); =09=09=09String codingSchemeURN =3D "urn:oid:11.11.0.1.1"; =09=09=09String codingSchemeVersion =3D "1.0"; =09=09=09String ExtensionCodingSchemeURN =3D "urn:oid:11.11.0.1.1-extension= "; =09=09=09String ExtensionCodingSchemeVersion =3D "1.0-extension"; =09=09=09parentCodingScheme.setCodingSchemeURN(codingSchemeURN); =09=09=09parentCodingScheme.setCodingSchemeVersion(codingSchemeVersion); =09=09=09supplementCodingScheme.setCodingSchemeURN(ExtensionCodingSchemeURN= ); =09=09=09supplementCodingScheme.setCodingSchemeVersion(ExtensionCodingSchem= eVersion); =09=09=09lbsvm.registerCodingSchemeAsSupplement(parentCodingScheme,suppleme= ntCodingScheme); =09=09 =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
Remove a coding schemes relationship with another as a supplement.
try { =09LexBIGServiceManager lbsvm =3D lbsv.getServiceManager(null); =09AbsoluteCodingSchemeVersionReference parentCodingScheme =3D new AbsoluteCodingSchemeVersionReference(); =09AbsoluteCodingSchemeVersionReference supplementCodingScheme =3D new AbsoluteCodingSchemeVersionReference(); =09String codingSchemeURN =3D "urn:oid:11.11.0.1.1"; =09String codingSchemeVersion =3D "1.0"; =09String ExtensionCodingSchemeURN =3D "urn:oid:11.11.0.1.1-extension"; =09String ExtensionCodingSchemeVersion =3D "1.0-extension"; =09parentCodingScheme.setCodingSchemeURN(codingSchemeURN); =09parentCodingScheme.setCodingSchemeVersion(codingSchemeVersion); =09supplementCodingScheme.setCodingSchemeURN(ExtensionCodingSchemeURN); =09supplementCodingScheme.setCodingSchemeVersion(ExtensionCodingSchemeVersi= on); =20 =09=09=09lbsvm.registerCodingSchemeAsSupplement(parentCodingScheme,suppleme= ntCodingScheme); =20 } catch (LBException e) { =09// TODO Auto-generated catch block =09e.printStackTrace(); }
Currently restricted to the support of Mapping Authoring only.
Le= xEVSAuthoringService authoring =3D new LexEVSAuthoringServiceImpl(); =20 =09 EntryState entryState =3D new EntryState(); =09 entryState.setChangeType(ChangeType.NEW); =09 entryState.setContainingRevision("FirstVersionNCItToICD9_12_1_54"); =09 entryState.setRelativeOrder(new Long(1)); =09=09 =09=09//Minimum meta data for the mapping coding scheme should be defined h= ere =09=09AbsoluteCodingSchemeVersionReference mappingCodingScheme =3D new Abso= luteCodingSchemeVersionReference(); =09=09mappingCodingScheme.setCodingSchemeURN("urn:oid:11.0011.1.1"); =09=09mappingCodingScheme.setCodingSchemeVersion("1.0"); =09=09 =09=09AbsoluteCodingSchemeVersionReference sourceCodingScheme =3D new Absol= uteCodingSchemeVersionReference(); =09=09sourceCodingScheme.setCodingSchemeURN("http://ncicb.nci.nih.gov/xml/o= wl/EVS/Thesaurus.owl#"); =09=09sourceCodingScheme.setCodingSchemeVersion("10.10e"); =09=09 =09=09AbsoluteCodingSchemeVersionReference targetCodingScheme =3D new Absol= uteCodingSchemeVersionReference(); =09=09targetCodingScheme.setCodingSchemeURN("urn:oid:2.16.840.1.113883.6.2"= ); =09=09targetCodingScheme.setCodingSchemeVersion("200909"); =09=09 =09=09AssociationSource[] associationSource =3D new AssociationSource[2]; =09=09 =09=09 =09=09String associationType =3D "mapped_to"; =09=09String relationsContainerName =3D "relations"; =09=09Date effectiveDate =3D new Date(); =09=09Revision revision =3D new Revision(); =09=09revision.setRevisionId(entryState.getContainingRevision()); =09=09 =09=09boolean loadEntities =3D false; =09=09try { =09=09=09authoring.createAssociationMapping( =09=09=09=09=09entryState,=20 =09=09=09=09 mappingCodingScheme, =09=09=09=09=09sourceCodingScheme,=20 =09=09=09=09=09targetCodingScheme, =09=09=09=09=09associationSource, =09=09=09=09=09associationType, =09=09=09=09=09relationsContainerName, =09=09=09=09=09effectiveDate, =09=09=09=09=09null, =09=09=09=09=09revision, =09=09=09=09=09false =09=09=09=09=09); =09=09} catch (LBException e) { =09=09=09// TODO Auto-generated catch block =09=09=09e.printStackTrace(); =09=09}
=09=09a= uthoring.createMappingWithDefaultValues(sources, "NCI Thesaurus", =09=09=09=09"10.10a", "ICD9", "200909", "mapped_to", false); =09=09AbsoluteCodingSchemeVersionReference codingSchemeVersion =3D new AbsoluteCodingSchemeVersionReference(); =09=09codingSchemeVersion =09=09=09=09.setCodingSchemeURN("http://default.mapping.container"); =09=09codingSchemeVersion.setCodingSchemeVersion("1.0"); =09=09lbsm.activateCodingSchemeVersion(codingSchemeVersion);
private= VersionableEventEntityService service; private AuthoringService authoringService; =20 CodingScheme scheme =3D new CodingScheme(); scheme.setApproxNumConcepts(111l); scheme.setCodingSchemeName("testName"); scheme.setCodingSchemeURI("uri"); scheme.setRepresentsVersion("v1"); =20 authoringService.loadRevision(scheme, null, null); =20 CodingScheme cs =3D codingSchemeservice.getCodingSchemeByUriAndVersion("ur= i", "v1"); System.out.println(cs); =20 Entity entity =3D new Entity(); entity.setEntityCode("c1"); entity.setEntityCodeNamespace("ns"); =20 service.insertEntity("uri", "v1", entity);
p= rivate VersionableEventEntityService service; private AuthoringService authoringService; =20 =20 CodingScheme scheme =3D new CodingScheme(); scheme.setApproxNumConcepts(111l); scheme.setCodingSchemeName("testName"); scheme.setCodingSchemeURI("uri"); scheme.setRepresentsVersion("v1"); =20 authoringService.loadRevision(scheme, null, null); =20 CodingScheme cs =3D codingSchemeservice.getCodingSchemeByUriAndVersion("uri= ", "v1"); System.out.println(cs); =20 // Create a new entity=20 Entity entity =3D new Entity(); entity.setEntityCode("c1"); entity.setEntityCodeNamespace("ns"); entity.setIsDefined(false); =20 EntryState entryState =3D new EntryState(); entryState.setChangeType(ChangeType.MODIFY); entity.setEntryState(entryState); =20 EntityDescription ed =3D new EntityDescription(); ed.setContent("pre-update"); entity.setEntityDescription(ed); =20 // Insert the new entity service.insertEntity("uri", "v1", entity); =20 // Update the entity description entity.getEntityDescription().setContent("post-update"); =20 try { // Update the entity service.updateEntity("uri", "v1", entity); } catch (Exception e) { =20 } =20 Entity modifiedEntity =3D service.getEntity("uri", "v1", "c1", "ns");
No further information provided
No further information provided