Don't know if this is what you want but it is possible to create a custom metadata definition for an asset. Custom metadata can be used in search queries.
See the API reference here: http://mediamosa.org/node/41413
REST call
/metadata_tag/create
POST:
name=custom_tag_1
type=int
Search query /asset?limit=10&custom_tag_1=4
The use case would be that there is that a app has a certain category that is connected to a metadata definition they should use. So when a theatre is using mediamosa they should use the theatre metadata definition.Example: When the app is used by a concert organiser the metadata definition to be used would be music.
In the current version of MediaMosa there are metadata property groups (eg. "dublin core") and every group has metadata properties (eg. "dublin core" has "title"). You can easily create new metadatas using the "metadata_tag/create" REST call (see: http://mediamosa.org/api). You can create "theater_name" or "movie_address" etc.
There isn't REST call to create metadata property groups, but you can do it manually (see: "assetprop_group" table in your mediamosa data database). Do it with care. We suggest if you do it, do it after the MediaMosa installation, when you don't have any assets.
After it you can create new metadata properties under these new groups. Eg. "theater" group will have "name" and address, "movie" has name and ticket_info...
After that you can fill the "theater" property group in case of theater, and "movie" group in case of movie.
PS. In the asset get you will see the unfilled properties as empty properties.
Comments
Re: Metatag definitions
Posted by UvA-Tom on September 21st, 2010 - 11:40Don't know if this is what you want but it is possible to create a custom metadata definition for an asset. Custom metadata can be used in search queries.
See the API reference here: http://mediamosa.org/node/41413
REST call
/metadata_tag/create
POST:
name=custom_tag_1
type=int
Search query
/asset?limit=10&custom_tag_1=4Re: Metatag definitions
Posted by stijnbe on September 21st, 2010 - 12:33The use case would be that there is that a app has a certain category that is connected to a metadata definition they should use. So when a theatre is using mediamosa they should use the theatre metadata definition.Example: When the app is used by a concert organiser the metadata definition to be used would be music.
thanks
Stijn
Re: Metatag definitions
Posted by forgacs on September 21st, 2010 - 13:06In the current version of MediaMosa there are metadata property groups (eg. "dublin core") and every group has metadata properties (eg. "dublin core" has "title"). You can easily create new metadatas using the "metadata_tag/create" REST call (see: http://mediamosa.org/api). You can create "theater_name" or "movie_address" etc.
There isn't REST call to create metadata property groups, but you can do it manually (see: "assetprop_group" table in your mediamosa data database). Do it with care. We suggest if you do it, do it after the MediaMosa installation, when you don't have any assets.
After it you can create new metadata properties under these new groups. Eg. "theater" group will have "name" and address, "movie" has name and ticket_info...
After that you can fill the "theater" property group in case of theater, and "movie" group in case of movie.
PS. In the asset get you will see the unfilled properties as empty properties.
Re: Metatag definitions
Posted by stijnbe on September 22nd, 2010 - 07:13forgacs thanks for your answer.