data-modeling

XML Data modeling tools

ぃ、小莉子 提交于 2020-01-25 10:52:10
问题 I want to create model classes from XML that I have written for my Java application. What are some good tools to convert auto generated classes from the XML I am writing ? A sample from my XML file. <list name="NameValuePairListDefinition"> <member target="NameValuePair" /> </list> <structure name="PositiveIntegerList"> <member name="list" target="PositiveIntegerListDefinition" /> </structure> 回答1: If you're working with Java and want to generate classes I would highly suggest going with

YANG: how to model nested lists configuration data without key

放肆的年华 提交于 2020-01-25 01:25:11
问题 I am trying to build YANG model for this configuration file that has lists without keys. However, Due to the necessity of key in YANG list, I wasn't able to build exact YANG model. Is there any idea how to represents list of list without key in YANG. The file includes acls in which there could be many acl like acl1, acl2 named by users and has rules as in the example below. acls: acl1: - rule: nw_src: 192.168.1.1/24 actions: allow: 1 - rule: actions: allow: 0 acl2: - rule: nw_src: 192.168.1.1

Optimizing Dax & model for “where date between” type queries

放肆的年华 提交于 2020-01-24 09:46:11
问题 I am building a model to allow reporting on two seperate datasets, for this example we'l say a Students dataset & a Staff dataset. The datasets are pretty seperate and the only real link between the two is Date, so from a model perspective, there is a Students star schema & a Staff Star Schema. The data displayed is snapshot type data, answering questions like: - For a selected date, show all active employees - for a selected date, show all enrolled students This means that when a single date

Fragmentation in MongoDB when growing documents

五迷三道 提交于 2020-01-23 17:47:05
问题 Seems like a blog with comments is the standard example used for describing different modeling strategies when using MongoDB. My question relates to the model where comments are modeled as a sub collection on a single blog post document (i.e one document stores everything related to a single blog post). In the case of multiple simultaneous writes it seems like you would avoid overwriting previous updates if you use upserts and targeted update modifiers (like push). Meaning, saving the

App engine datastore denormalization: index properties in the main entity or the denormalized entity?

北城以北 提交于 2020-01-16 02:55:13
问题 Consider the classic example of blog data modelling, where we have a Blog entity with many properties, and we want to list the latest blogs in a page. It makes sense to denormalize the BlogPost entity into a BlogPostSummary entity which will be shown in the list view, avoiding fetching and deserializing many unwanted properties. class BlogPost(db.Model): title = db.StringProperty() content = db.TextProperty() created = db.DateProperty() ... class BlogPostSummary(db.Model): title = db

“Read-Only” Entity Framework? I'm trying to use RIA Services, EF, and Silverlight

和自甴很熟 提交于 2020-01-14 04:14:18
问题 I'm trying to present MySQL server data in a silverlight client and my current plan of attack is to use Entity Framework to MySQL with RIA Services providing the data access between the Silverlight Client and Entity Framework. However, I'm only trying to present data to the user and I do not want the possibility of me or someone else being able to change the data in MySQL. In short, I wish there was a way to simply ignore the setters for all entity types. I only want getters. I want "read

What ways are there to store information about an anonymous/guest user in a database?

…衆ロ難τιáo~ 提交于 2020-01-12 07:11:10
问题 Our application has an online shop among other features, and users are normally requested to register before completing a sale, creating a unique customer_ID in the process. When they return, they can log in and their contact details and transaction history are retrieved from the database. We are now exploring what to do in the case of an 'anonymous' or 'guest' customer, opening up the online shop to customers who don't want to register, and also for sales logged in the backend application,

Partitioning a database table in MySQL

江枫思渺然 提交于 2020-01-11 03:41:25
问题 I am writing a data warehouse, using MySQL as the back-end. I need to partition a table based on two integer IDs and a name string. A more concrete example would be to assume that I am storing data about a school. I want to partition the school_data table based on COMPOSITE 'Key' based on the following: school id (integer) course_id (integer) student_surname (string) For the student surname, it is just the first character of the surname that determines which 'partitioned table' the data

How to create an ontology from raw data (CSV)?

笑着哭i 提交于 2020-01-10 02:06:22
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.

How to create an ontology from raw data (CSV)?

旧街凉风 提交于 2020-01-10 02:05:11
问题 I am modelling university data using an OWL ontology with relevant classes, object properties, etc. I have the university data lying in a simple text file (say CSV). I want to create ontologies using my model for these data. My questions are: Is this how ontologies work? If so, how can this be done using using Jena? 回答1: If I understood your question, you have an ontology that represents a university model and you want to create owl instances using the data set which is in the form of CSV.