Aklakan commented on issue #1476:
URL: https://github.com/apache/jena/issues/1476#issuecomment-1216407774

   > Probably (it needs detailed analysis) the build policy should be "same 
URI, same thing" per build run which an individual builder can ignore.
   
   The concept of the assembler is essentially the same as that of spring bean 
definitions which support different scopes:
   
https://docs.spring.io/spring-framework/docs/3.0.0.M3/reference/html/ch04s04.html
   
   Scope | Description
   -- | --
   singleton | Scopes a single bean definition to a single object instance per 
Spring IoC container.
   prototype | Scopes a single bean definition to any number of object 
instances.
   
   
   In java this is done with
   ```java
   class MyBeans {
     @Bean
     @Scope("prototype")
     MyBean myBean() { ...}
   }
   ```
   
   Perhaps these annotations could be simply expressed in the RDF using an 
`ja:scope` attribute?
   E.g.
   ```ttl
     <#myMemoryDatasetBean> a ja:MemoryDataset ;
      ja:scope ja:prototype ; 
      .
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to