Examples of MetadataConfiguration


Examples of de.fuberlin.wiwiss.pubby.MetadataConfiguration

    document.addProperty(FOAF.primaryTopic, topic);
    document.addProperty(RDFS.label, title);
   
    // Add custom metadata
    for (Dataset dataset: config.getDatasets()) {
      MetadataConfiguration metadata = dataset.getMetadataConfiguration();
      metadata.addCustomMetadata(model, document);
      metadata.addMetadataFromTemplate(model, controller);
    }
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.pubby.MetadataConfiguration

  protected void addPageMetadata(Context context,
      HypermediaControls controller, PrefixMapping prefixes) {
    try {
      Model metadataModel = ModelFactory.createDefaultModel();
      for (Dataset dataset: config.getDatasets()) {
        MetadataConfiguration metadata = dataset.getMetadataConfiguration();
        Resource document = metadata.addMetadataFromTemplate(metadataModel, controller);
        // Replaced the commented line by the following one because the
        // RDF graph we want to talk about is a specific representation
        // of the data identified by the getDataURL() URI.
        //                                       Olaf, May 28, 2010
        // context.put("metadata", metadata.getResource(resource.getDataURL()));
View Full Code Here

Examples of org.apache.ws.metadata.MetadataConfiguration

    *
    * @return MetadataDocument response document
    */
   public MetadataDocument getMetadata( GetMetadataDocument request )
   {
      MetadataConfiguration metadataConfig = getResourceContext(  ).getResourceHome(  ).getMetadataConfig(  );

      // prep the response
      MetadataDocument          responseDoc      = createMetadataResponseDoc(  );
      MetadataDocument.Metadata responseMetadata = responseDoc.addNewMetadata(  );

      if ( metadataConfig != null )
      {
         // get the values from the request
         GetMetadataDocument.GetMetadata requestMetadata = request.getGetMetadata(  );
         String                          dialect    = requestMetadata.getDialect(  );
         String                          identifier = requestMetadata.getIdentifier(  );

         // get the metatdata from the config
         // the map is keyed on dialect and keyed to a List of metadata
         // this allows you to build a metadata section per dialect
         Map metadataMap = metadataConfig.getMetadata( dialect, identifier );

         // iterate the returned set and add metadata sections
         Iterator iterator = metadataMap.keySet(  ).iterator(  );
         while ( iterator.hasNext(  ) )
         {
View Full Code Here

Examples of org.springframework.data.rest.core.config.MetadataConfiguration

    return config;
  }

  @Bean
  public MetadataConfiguration metadataConfiguration() {
    return new MetadataConfiguration();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.